diff options
| author | Georg Brandl <georg@python.org> | 2006-09-30 11:17:34 +0000 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2006-09-30 11:17:34 +0000 |
| commit | 4ddfcd3b60b2c68f75a21a4f04b4a0f70caca7d5 (patch) | |
| tree | 7dcf15eb27214fff779f43dbdf9789d43e265896 /Modules/datetimemodule.c | |
| parent | 154324a8c3bcdde62acff8272388948e3d75cb51 (diff) | |
| download | cpython-git-4ddfcd3b60b2c68f75a21a4f04b4a0f70caca7d5.tar.gz | |
Bug #1556784: allow format strings longer than 127 characters in
datetime's strftime function.
Diffstat (limited to 'Modules/datetimemodule.c')
| -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 648ebe5af3..39a859f3e5 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 */ |
