Revert 54815 for 2.5.1 release. Can be applied after 2.5 branch is unfrozen.

This commit is contained in:
Neal Norwitz 2007-04-16 06:19:32 +00:00
parent 16b7b53ad0
commit a4ff44aa26

View file

@ -650,7 +650,7 @@ calculate_path(void)
start of the path in question - even if this
is one character before the start of the buffer
*/
while (look >= module_search_path && *look != DELIM)
while (*look != DELIM && look >= module_search_path)
look--;
nchars = lookEnd-look;
strncpy(lookBuf, look+1, nchars);