Skip to content
Snippets Groups Projects
Commit 4d4e0d6c authored by Brad King's avatar Brad King
Browse files

ERR: Should use %p to pass HANDLE values on a command line, not %d.

parent a412112e
No related branches found
No related tags found
No related merge requests found
......@@ -72,12 +72,12 @@ int main()
/* Parse the error pipe handle. */
while(*cmdLine && *cmdLine == ' ') { ++cmdLine; }
sscanf(cmdLine, "%d", &errorPipe);
sscanf(cmdLine, "%p", &errorPipe);
/* Parse the kill event handle. */
while(*cmdLine && *cmdLine != ' ') { ++cmdLine; }
while(*cmdLine && *cmdLine == ' ') { ++cmdLine; }
sscanf(cmdLine, "%d", &killEvent);
sscanf(cmdLine, "%p", &killEvent);
/* Skip to the beginning of the command line of the real child. */
while(*cmdLine && *cmdLine != ' ') { ++cmdLine; }
......
......@@ -680,7 +680,7 @@ void kwsysProcess_Execute(kwsysProcess* cp)
/* The forwarding executable is given a handle to the error pipe
and a handle to the kill event. */
cp->RealCommand = malloc(strlen(cp->Win9x)+strlen(cp->Command)+100);
sprintf(cp->RealCommand, "%s %d %d %s", cp->Win9x,
sprintf(cp->RealCommand, "%s %p %p %s", cp->Win9x,
cp->Pipe[CMPE_PIPE_ERROR].Write,
cp->Win9xKillEvent, cp->Command);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment