diff options
author | Georg Brandl <georg@python.org> | 2006-09-30 11:17:43 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2006-09-30 11:17:43 (GMT) |
commit | 6d7c36332f3ad9a2214ef9531ea0d5dc0cb9c765 (patch) | |
tree | c3e45c707e65f786055d203b0bb335ddf0c64c1c /Modules | |
parent | 7037745be72691f7d956a5873a4e925b8485c9a9 (diff) | |
download | cpython-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.c | 4 |
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 */ |