diff options
author | dgp <dgp@users.sourceforge.net> | 2012-07-05 13:56:00 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2012-07-05 13:56:00 (GMT) |
commit | 483000c00d35b9be38ed8c746134d8c25c7abdd7 (patch) | |
tree | 0367da0ef2ac5fe159aea82f6775995b75c7a54d /unix/tclUnixPipe.c | |
parent | c091db675b5a288f8b5de8c74d4550b9f3c2e794 (diff) | |
parent | 22494dcc59a1b43be12abc4288197002cf2b8bf7 (diff) | |
download | tcl-483000c00d35b9be38ed8c746134d8c25c7abdd7.zip tcl-483000c00d35b9be38ed8c746134d8c25c7abdd7.tar.gz tcl-483000c00d35b9be38ed8c746134d8c25c7abdd7.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 d01624c..a505bef 100644 --- a/unix/tclUnixPipe.c +++ b/unix/tclUnixPipe.c @@ -211,7 +211,7 @@ TclpCreateTempFile( 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; |