summaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2012-07-05 13:51:29 (GMT)
committerdgp <dgp@users.sourceforge.net>2012-07-05 13:51:29 (GMT)
commit8c652eebaacd8ebb77c256428a3cda8a1bf8b814 (patch)
tree1f7802c2615d135e2dcce19a4ea4daa61f172c0c /unix
parentb4acd4935320a64a571f6496290d44d1fafce047 (diff)
parent9792a27404caba808e5e0e5a15a6d86312613e4f (diff)
downloadtcl-8c652eebaacd8ebb77c256428a3cda8a1bf8b814.zip
tcl-8c652eebaacd8ebb77c256428a3cda8a1bf8b814.tar.gz
tcl-8c652eebaacd8ebb77c256428a3cda8a1bf8b814.tar.bz2
1189293 Make "<<" binary safe.
Diffstat (limited to 'unix')
-rw-r--r--unix/tclUnixPipe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/unix/tclUnixPipe.c b/unix/tclUnixPipe.c
index eb3a218..105f032 100644
--- a/unix/tclUnixPipe.c
+++ b/unix/tclUnixPipe.c
@@ -212,7 +212,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;