diff options
Diffstat (limited to 'src/user/app/find/find.c')
-rw-r--r-- | src/user/app/find/find.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/user/app/find/find.c b/src/user/app/find/find.c index 502a190..6c5d31a 100644 --- a/src/user/app/find/find.c +++ b/src/user/app/find/find.c @@ -1,3 +1,4 @@ +#include <camellia/path.h> #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -48,8 +49,8 @@ void recurse(char *path) { } void find(const char *path) { - // TODO export PATH_MAX - char *buf = malloc(4096); + // TODO bound checking + char *buf = malloc(PATH_MAX); memcpy(buf, path, strlen(path)+1); recurse(buf); free(buf); |