platform/unix.c
changeset 505 c7f7f234a156
parent 452 89578e99ba6e
child 520 a72bbf255074
--- a/platform/unix.c	Fri Nov 22 06:24:10 2002 +0000
+++ b/platform/unix.c	Sat Nov 30 04:50:49 2002 +0000
@@ -221,7 +221,7 @@
 
         /* 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);