Skip to content

Commit ca016d7

Browse files
committed
Double buffer size
1 parent a7cf1b3 commit ca016d7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Modules/timemodule.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -859,6 +859,7 @@ time_strftime1(time_char **outbuf, size_t *bufsize,
859859
PyErr_Format(PyExc_ValueError, "Invalid format string attempts: %d *outbuf: '%.8s'", attempts, *outbuf);
860860
return NULL;
861861
}
862+
*bufsize += *bufsize;
862863
}
863864
}
864865

0 commit comments

Comments
 (0)