From c79285af0e8e4765c63e65b259b3d1f6740e18f0 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Sat, 30 Nov 2002 04:50:49 +0000 Subject: [PATCH] Minor fix for odd PATH entries. --- platform/unix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/unix.c b/platform/unix.c index 48017b79..5b8b7b57 100644 --- a/platform/unix.c +++ b/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);