Skip to content
Permalink
Browse files
Minor fix for odd PATH entries.
  • Loading branch information
icculus committed Nov 30, 2002
1 parent 9d82110 commit c79285af0e8e4765c63e65b259b3d1f6740e18f0
Showing with 1 addition and 1 deletion.
  1. +1 −1 platform/unix.c
@@ -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);

0 comments on commit c79285a

Please sign in to comment.