diff options
author | gramanas <anastasis.gramm2@gmail.com> | 2022-05-20 13:15:14 +0300 |
---|---|---|
committer | gramanas <anastasis.gramm2@gmail.com> | 2022-05-20 13:15:14 +0300 |
commit | b30cd3e1b8d1162c529bfdd602d0d56ccd2e38c7 (patch) | |
tree | bfae4137f78a0bf223518f6590db2bd436e82185 /src/lib.c | |
parent | 3515199c9e158d4b6fe5d064539bdf288dca7b81 (diff) | |
download | foodtools-b30cd3e1b8d1162c529bfdd602d0d56ccd2e38c7.tar.gz foodtools-b30cd3e1b8d1162c529bfdd602d0d56ccd2e38c7.tar.bz2 foodtools-b30cd3e1b8d1162c529bfdd602d0d56ccd2e38c7.zip |
aha
Diffstat (limited to 'src/lib.c')
-rw-r--r-- | src/lib.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1,6 +1,8 @@ #include "lib.h" #include "util.h" +#define LINE_SIZE 4096 + const char * default_food_lib = "/usr/local/share/food"; const char * @@ -17,10 +19,10 @@ static int rcp_find(char *** lib, int lib_n, const char * path) { int n = lib_n; - char line[1035]; + char line[LINE_SIZE]; FILE *fp; - char cmd[2048] = "/bin/find "; + char cmd[LINE_SIZE] = "/bin/find "; strcat(cmd, path); strcat(cmd, " -name '*.rcp'"); |