diff options
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'"); |