Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5b2ac8 commit 136ea49Copy full SHA for 136ea49
1 file changed
Modules/timemodule.c
@@ -527,14 +527,18 @@ time_strftime(PyObject *self, PyObject *args)
527
* will be ahead of time...
528
*/
529
for (i = 1024; ; i += i) {
530
+#if defined _MSC_VER && _MSC_VER >= 1400 && defined(__STDC_SECURE_LIB__)
531
int err;
532
+#endif
533
outbuf = (time_char *)PyMem_Malloc(i*sizeof(time_char));
534
if (outbuf == NULL) {
535
PyErr_NoMemory();
536
break;
537
}
538
buflen = format_time(outbuf, i, fmt, &buf);
539
540
err = errno;
541
542
if (buflen > 0 || i >= 256 * fmtlen) {
543
/* If the buffer is 256 times as long as the format,
544
it's probably not failing for lack of room!
0 commit comments