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:
parent
b9f16dcd93
commit
013765b30a
@ -927,6 +927,10 @@ open_container(char *name, image_type type)
|
||||
|
||||
// duplicate environment variable before screw it!
|
||||
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));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user