diff options
author | davygrvy <davygrvy@noemail.net> | 2004-10-26 20:24:15 (GMT) |
---|---|---|
committer | davygrvy <davygrvy@noemail.net> | 2004-10-26 20:24:15 (GMT) |
commit | 2a67b7c55800775bc878ed435ba467b2b9f46712 (patch) | |
tree | aac9cae6f0b36379627e157d614e6fbc627241ec /generic/tclPipe.c | |
parent | d34e7f01feb706c7d32d3f0da86623d61c51edd8 (diff) | |
download | tcl-2a67b7c55800775bc878ed435ba467b2b9f46712.zip tcl-2a67b7c55800775bc878ed435ba467b2b9f46712.tar.gz tcl-2a67b7c55800775bc878ed435ba467b2b9f46712.tar.bz2 |
* generic/tclPipe.c (TclCleanupChildren): bad cast of resolvedPid caused
PIDs on win95 to go negative. winpipe-4.2 brought this to the surface. Fixed
with sprintf in place of TclFormatInt. Thanks to hgiese [Patch 767676]
FossilOrigin-Name: a299c8cf04721a32cb13b6c43c7718714c6a814a
Diffstat (limited to 'generic/tclPipe.c')
-rw-r--r-- | generic/tclPipe.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tclPipe.c b/generic/tclPipe.c index 681d18b..d4a45cd 100644 --- a/generic/tclPipe.c +++ b/generic/tclPipe.c @@ -10,7 +10,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclPipe.c,v 1.9 2004/07/02 23:31:29 hobbs Exp $ + * RCS: @(#) $Id: tclPipe.c,v 1.10 2004/10/26 20:24:15 davygrvy Exp $ */ #include "tclInt.h" @@ -322,10 +322,10 @@ TclCleanupChildren(interp, numPids, pidPtr, errorChan) char msg1[TCL_INTEGER_SPACE], msg2[TCL_INTEGER_SPACE]; result = TCL_ERROR; - TclFormatInt(msg1, (long) resolvedPid); + sprintf(msg1, "%lu", resolvedPid); if (WIFEXITED(waitStatus)) { if (interp != (Tcl_Interp *) NULL) { - TclFormatInt(msg2, WEXITSTATUS(waitStatus)); + sprintf(msg2, "%hu", WEXITSTATUS(waitStatus)); Tcl_SetErrorCode(interp, "CHILDSTATUS", msg1, msg2, (char *) NULL); } |