summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixPipe.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2012-07-05 13:56:00 (GMT)
committerdgp <dgp@users.sourceforge.net>2012-07-05 13:56:00 (GMT)
commit483000c00d35b9be38ed8c746134d8c25c7abdd7 (patch)
tree0367da0ef2ac5fe159aea82f6775995b75c7a54d /unix/tclUnixPipe.c
parentc091db675b5a288f8b5de8c74d4550b9f3c2e794 (diff)
parent22494dcc59a1b43be12abc4288197002cf2b8bf7 (diff)
downloadtcl-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.c2
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;