diff options
author | dgp@users.sourceforge.net <dgp> | 2012-07-05 13:50:20 (GMT) |
---|---|---|
committer | dgp@users.sourceforge.net <dgp> | 2012-07-05 13:50:20 (GMT) |
commit | 11cf3cef57ee2859e949dd4bb23aedc7b6b43540 (patch) | |
tree | 52cc8997929607ada07915e227b75226c72d1ef9 /unix/tclUnixPipe.c | |
parent | 86bfc3d812ff80eb40522d832c714f5f1926a855 (diff) | |
parent | 0e1fcf44a26d976fed05402efdca880bf0d1b0fa (diff) | |
download | tcl-11cf3cef57ee2859e949dd4bb23aedc7b6b43540.zip tcl-11cf3cef57ee2859e949dd4bb23aedc7b6b43540.tar.gz tcl-11cf3cef57ee2859e949dd4bb23aedc7b6b43540.tar.bz2 |
1189293 Make "<<" binary safe.
Diffstat (limited to 'unix/tclUnixPipe.c')
-rw-r--r-- | unix/tclUnixPipe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unix/tclUnixPipe.c b/unix/tclUnixPipe.c index 3a4005c..829a4a6 100644 --- a/unix/tclUnixPipe.c +++ b/unix/tclUnixPipe.c @@ -213,7 +213,7 @@ TclpCreateTempFile(contents) if (contents != NULL) { native = Tcl_UtfToExternalDString(NULL, contents, -1, &dstring); - if (write(fd, native, strlen(native)) == -1) { + if (write(fd, native, Tcl_DStringLength(&dstring)) == -1) { close(fd); Tcl_DStringFree(&dstring); return NULL; |