Skip to content

Commit

Permalink
Merge 8.6
Browse files Browse the repository at this point in the history
  • Loading branch information
jan.nijtmans committed May 3, 2021
2 parents 7c2d4b6 + ada858e commit 4f07dbf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion generic/tclIO.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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) {
Expand Down

0 comments on commit 4f07dbf

Please sign in to comment.