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 | a54ec2aacbcefc9937f752af4178841cc53e9d25 (patch) | |
tree | 0367da0ef2ac5fe159aea82f6775995b75c7a54d /unix/tclUnixPipe.c | |
parent | 36245ad98788adfc0a8906fdd9c61ac0b82990b4 (diff) | |
parent | 8c652eebaacd8ebb77c256428a3cda8a1bf8b814 (diff) | |
download | tcl-a54ec2aacbcefc9937f752af4178841cc53e9d25.zip tcl-a54ec2aacbcefc9937f752af4178841cc53e9d25.tar.gz tcl-a54ec2aacbcefc9937f752af4178841cc53e9d25.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; |