Re: [Patch 1/3] tabled: make time2str reentrant

2010-01-03 Thread Pete Zaitcev
On Sun, 03 Jan 2010 03:27:59 -0500 Jeff Garzik j...@garzik.org wrote: - sprintf(datestr, Date: %s, time2str(timestr, time(NULL))); + sprintf(datestr, Date: %s, time2str(timestr, 64, time(NULL))); applied 1-3, and then added sizeof() to the above time2str calls... The hardcoded sizes

[Patch 1/3] tabled: make time2str reentrant

2010-01-02 Thread Pete Zaitcev
The main point here is to kill gmtime, but since we're at it, may as well fix the API and add safety (observe, that not all timestr arguments were 64 bytes long in the original code). Signed-Off-By: Pete Zaitcev zait...@redhat.com --- include/httputil.h |2 +- lib/httpstor.c | 12