Skip to content

Commit

Permalink
add notes
Browse files Browse the repository at this point in the history
  • Loading branch information
cyanide0081 committed Oct 2, 2023
1 parent 82b8b73 commit 8b47a91
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/parse.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 8b47a91

Please sign in to comment.