summaryrefslogtreecommitdiffstats
path: root/src/lib.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.c')
-rw-r--r--src/lib.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib.c b/src/lib.c
index 3da93ed..a1f1f29 100644
--- a/src/lib.c
+++ b/src/lib.c
@@ -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'");