summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2006-09-30 11:17:43 (GMT)
committerGeorg Brandl <georg@python.org>2006-09-30 11:17:43 (GMT)
commit6d7c36332f3ad9a2214ef9531ea0d5dc0cb9c765 (patch)
treec3e45c707e65f786055d203b0bb335ddf0c64c1c /Modules
parent7037745be72691f7d956a5873a4e925b8485c9a9 (diff)
downloadcpython-6d7c36332f3ad9a2214ef9531ea0d5dc0cb9c765.zip
cpython-6d7c36332f3ad9a2214ef9531ea0d5dc0cb9c765.tar.gz
cpython-6d7c36332f3ad9a2214ef9531ea0d5dc0cb9c765.tar.bz2
Bug #1556784: allow format strings longer than 127 characters in
datetime's strftime function. (backport from rev. 52072)
Diffstat (limited to 'Modules')
-rw-r--r--Modules/datetimemodule.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/datetimemodule.c b/Modules/datetimemodule.c
index 648ebe5..39a859f 100644
--- a/Modules/datetimemodule.c
+++ b/Modules/datetimemodule.c
@@ -1149,9 +1149,9 @@ wrap_strftime(PyObject *object, PyObject *format, PyObject *timetuple,
PyObject *newfmt = NULL; /* py string, the output format */
char *pnew; /* pointer to available byte in output format */
- char totalnew; /* number bytes total in output format buffer,
+ int totalnew; /* number bytes total in output format buffer,
exclusive of trailing \0 */
- char usednew; /* number bytes used so far in output format buffer */
+ int usednew; /* number bytes used so far in output format buffer */
char *ptoappend; /* pointer to string to append to output buffer */
int ntoappend; /* # of bytes to append to output buffer */