diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2021-05-03 19:44:49 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2021-05-03 19:44:49 (GMT) |
commit | e2a1c2f11c3d0e58d1375611060f83d0d962035a (patch) | |
tree | ff9018431dd2815f71698fea8de5fa6a4320b757 /generic/tclIO.c | |
parent | 471313fea05798b7d188c6f69266b319236abef1 (diff) | |
parent | 6f6229ef6eb2c97e4841083a1a67707594af8d57 (diff) | |
download | tcl-e2a1c2f11c3d0e58d1375611060f83d0d962035a.zip tcl-e2a1c2f11c3d0e58d1375611060f83d0d962035a.tar.gz tcl-e2a1c2f11c3d0e58d1375611060f83d0d962035a.tar.bz2 |
Merge 8.6
Diffstat (limited to 'generic/tclIO.c')
-rw-r--r-- | generic/tclIO.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/generic/tclIO.c b/generic/tclIO.c index b9ec2a7..fcca19c 100644 --- a/generic/tclIO.c +++ b/generic/tclIO.c @@ -4321,6 +4321,7 @@ Write( /* State info for channel */ char *nextNewLine = NULL; int endEncoding, saved = 0, total = 0, flushed = 0, needNlFlush = 0; + char safe[BUFFER_PADDING]; if (srcLen) { WillWrite(chanPtr); @@ -4339,7 +4340,7 @@ Write( while (srcLen + saved + endEncoding > 0) { ChannelBuffer *bufPtr; - char *dst, safe[BUFFER_PADDING]; + char *dst; int result, srcRead, dstLen, dstWrote, srcLimit = srcLen; if (nextNewLine) { |