[Python-checkins] CVS: python/dist/src/Modules timemodule.c

Guido van Rossum guido@cnri.reston.va.us
Mon, 22 Feb 1999 19:00:11 -0500 (EST)

Update of /projects/cvsroot/python/dist/src/Modules
In directory eric:/projects/python/develop/guido/src/Modules

Modified Files:
Log Message:
Patch by Tadayoshi Funaba (with some changes) to be smarter about
guessing what happened when strftime() returns 0.  Is it buffer
overflow or was the result simply 0 bytes long?  (This happens for an
empty format string, or when the format string is a single %Z and the
timezone is unknown.)  if the buffer is at least 256 times as long as
the format, assume the latter.