mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-27 01:11:33 +02:00
14 lines
466 B
Diff
14 lines
466 B
Diff
Author: Steve Kemp <skx@debian.org>
|
|
Description: urlsnarf: zero-pad date, Closes #298605.
|
|
--- a/urlsnarf.c 2011-06-19 17:15:01.103999376 -0500
|
|
+++ b/urlsnarf.c 2011-06-19 17:15:08.631999375 -0500
|
|
@@ -68,7 +68,7 @@
|
|
t->tm_hour - gmt.tm_hour);
|
|
tz = hours * 60 + t->tm_min - gmt.tm_min;
|
|
|
|
- len = strftime(tstr, sizeof(tstr), "%e/%b/%Y:%X", t);
|
|
+ len = strftime(tstr, sizeof(tstr), "%d/%b/%Y:%X", t);
|
|
if (len < 0 || len > sizeof(tstr) - 5)
|
|
return (NULL);
|
|
|