Minor fix for odd PATH entries.
This commit is contained in:
parent
9d82110b57
commit
c79285af0e
|
@ -221,7 +221,7 @@ static char *findBinaryInPath(const char *bin, char *envr)
|
||||||
|
|
||||||
/* build full binary path... */
|
/* build full binary path... */
|
||||||
strcpy(exe, start);
|
strcpy(exe, start);
|
||||||
if (exe[strlen(exe) - 1] != '/')
|
if ((exe[0] == '\0') || (exe[strlen(exe) - 1] != '/'))
|
||||||
strcat(exe, "/");
|
strcat(exe, "/");
|
||||||
strcat(exe, bin);
|
strcat(exe, bin);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue