From 8b47a91022f65a8e605c79cd3eb3ed69032ca844 Mon Sep 17 00:00:00 2001 From: cyanide0081 Date: Mon, 2 Oct 2023 19:46:12 -0300 Subject: [PATCH] add notes --- src/parse.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/parse.c b/src/parse.c index 88421f0..e7764b0 100644 --- a/src/parse.c +++ b/src/parse.c @@ -278,8 +278,11 @@ static char *getAbsolutePath(const char *dir) { #else /* TODO: do UNIX realpath() stuff here and test it * with very long paths (larger than PATH_MAX bytes) - * NOTE: the malloc() version of realpath may not be - * available in macos (in which case this will break) */ + * NOTE: + * - paths longer than PATH_MAX bytes will probably always break + * here since realpath() only allocates up to that much space + * - the malloc() version of realpath may not be + * available in macos (in which case this will break) */ return realpath(dir, NULL); #endif }