361f260
diff -up ksh-20120801/src/cmd/ksh93/sh/main.c.fixargs ksh-20120801/src/cmd/ksh93/sh/main.c
361f260
--- ksh-20120801/src/cmd/ksh93/sh/main.c.fixargs	2013-12-31 11:32:14.917874134 +0100
361f260
+++ ksh-20120801/src/cmd/ksh93/sh/main.c	2013-12-31 11:32:58.028847126 +0100
361f260
@@ -757,7 +757,7 @@ static void fixargs(char **argv, int mod
361f260
 		offset += size;
361f260
 		buff[offset++] = ' ';
361f260
 	}
361f260
-	buff[offset-1] = 0;
361f260
+	memset(&buff[offset - 1], 0, command_len - offset + 1);
361f260
 #   ifdef PSTAT
361f260
 	un.pst_command = stakptr(0);
361f260
 	pstat(PSTAT_SETCMD,un,0,0,0);
361f260