Minor fix for odd PATH entries.

This commit is contained in:
Ryan C. Gordon 2002-11-30 04:50:49 +00:00
parent 9d82110b57
commit c79285af0e
1 changed files with 1 additions and 1 deletions

View File

@ -221,7 +221,7 @@ static char *findBinaryInPath(const char *bin, char *envr)
/* build full binary path... */
strcpy(exe, start);
if (exe[strlen(exe) - 1] != '/')
if ((exe[0] == '\0') || (exe[strlen(exe) - 1] != '/'))
strcat(exe, "/");
strcat(exe, bin);