Added ToDo regarding the handling of search paths like PATH.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11481 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2005-02-24 16:34:00 +00:00
parent b9f16dcd93
commit 013765b30a

View File

@ -927,6 +927,10 @@ open_container(char *name, image_type type)
// duplicate environment variable before screw it! // duplicate environment variable before screw it!
strlcpy(searchPath, paths, PATH_MAX); strlcpy(searchPath, paths, PATH_MAX);
// ToDo: PATH_MAX is definitely too short for a list of paths.
// Better roll our own non-destructive strtok_r() replacement for this
// special case, so that the string doesn't need to be copied.
// Alternatively use strdup().
TRACE(("rld.so: open_container() %s in %s\n", name, searchPath)); TRACE(("rld.so: open_container() %s in %s\n", name, searchPath));