platform/unix.c
changeset 79 5dbb03944ef0
parent 70 203efbe2532e
child 100 d2f04ab4b412
--- a/platform/unix.c	Wed Aug 29 03:11:23 2001 +0000
+++ b/platform/unix.c	Wed Aug 29 03:31:43 2001 +0000
@@ -135,9 +135,9 @@
             BAIL_IF_MACRO(1, ERR_OUT_OF_MEMORY, NULL);
         } /* if */
         strcpy(exe, start);
-        if (start[strlen(start) - 1] != '/')
-            strcat(start, "/");
-        strcat(start, argv0);
+        if (exe[strlen(exe) - 1] != '/')
+            strcat(exe, "/");
+        strcat(exe, argv0);
         if (access(exe, X_OK) != 0)
             free(exe);
         else