platform_unix.c
changeset 78 55c90060fbc1
parent 77 809774c1e78d
child 81 50f6052737ce
--- a/platform_unix.c	Wed Mar 23 22:21:32 2005 +0000
+++ b/platform_unix.c	Fri Apr 22 09:59:45 2005 +0000
@@ -553,11 +553,11 @@
 int spawn_xdelta(const char *cmdline)
 {
     const char *binname = "xdelta";
-    char *cmd = alloca(strlen(cmdline) + strlen(basedir) + strlen(binname) + 2);
+    char *cmd = alloca(strlen(cmdline) + strlen(basedir) + strlen(binname) + 5);
     if (!cmd)
         return(0);
 
-    sprintf(cmd, "\"%s%s\" %s", basedir, binname, cmdline);
+    sprintf(cmd, "\"%s/%s\" %s", basedir, binname, cmdline);
 
 #if !USE_PTHREAD
     int rc = 0;