Blame SOURCES/ksh-20120801-argvfix.patch

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