summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixPipe.c
diff options
context:
space:
mode:
authornijtmans@users.sourceforge.net <jan.nijtmans>2012-07-08 10:57:11 (GMT)
committernijtmans@users.sourceforge.net <jan.nijtmans>2012-07-08 10:57:11 (GMT)
commit5d0e68e85f6db35dc2c8290574ed51501af97b53 (patch)
tree4fe8a274a2300c18c6843b1249e2b33e343b895f /unix/tclUnixPipe.c
parent701ec705e968a70f3ddb5f719423c33448468015 (diff)
parente03c7210544b3cecca3383290a9b26e19f18b5b8 (diff)
downloadtcl-5d0e68e85f6db35dc2c8290574ed51501af97b53.zip
tcl-5d0e68e85f6db35dc2c8290574ed51501af97b53.tar.gz
tcl-5d0e68e85f6db35dc2c8290574ed51501af97b53.tar.bz2
merge trunk
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;