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