projects
/
citadel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
* use snprintf
[citadel.git]
/
webcit
/
fmt_date.c
diff --git
a/webcit/fmt_date.c
b/webcit/fmt_date.c
index 3289fac0ae4f2af719cfdf6aa4626c6cef49caad..c01f8778e286ef5ecc3e3f9e099af4b0ee30862c 100644
(file)
--- a/
webcit/fmt_date.c
+++ b/
webcit/fmt_date.c
@@
-225,7
+225,7
@@
time_t httpdate_to_timestamp(char *buf)
/** Got everything; let's go */
/** First, change to UTC */
if (getenv("TZ"))
- s
printf(tz
, "TZ=%s", getenv("TZ"));
+ s
nprintf(tz, 256
, "TZ=%s", getenv("TZ"));
else
strcpy(tz, "TZ=");
putenv("TZ=UTC");