From ce00d1677d7a419b427e7f11963eee982a55a231 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Thu, 4 Aug 2022 23:06:57 +0200 Subject: do some simple TODOs, organize the rest; general code maintainance --- src/user/app/find/find.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/user/app/find/find.c') 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 #include #include #include @@ -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); -- cgit v1.2.3