diff options
author | dgp@users.sourceforge.net <dgp> | 2012-07-05 13:51:29 (GMT) |
---|---|---|
committer | dgp@users.sourceforge.net <dgp> | 2012-07-05 13:51:29 (GMT) |
commit | 4f39606571ec02624e0fdba57fdbe5eb0a02f4c1 (patch) | |
tree | 1f7802c2615d135e2dcce19a4ea4daa61f172c0c /unix/tclUnixPipe.c | |
parent | bd2f69885996dbd8e36089738032e45ce94ea423 (diff) | |
parent | 11cf3cef57ee2859e949dd4bb23aedc7b6b43540 (diff) | |
download | tcl-4f39606571ec02624e0fdba57fdbe5eb0a02f4c1.zip tcl-4f39606571ec02624e0fdba57fdbe5eb0a02f4c1.tar.gz tcl-4f39606571ec02624e0fdba57fdbe5eb0a02f4c1.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 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; |