mirror of
https://github.com/Ponce/slackbuilds
synced 2024-12-02 13:04:42 +01:00
18 lines
518 B
Diff
18 lines
518 B
Diff
|
Author: Steve Kemp <skx@debian.org>
|
||
|
Description: urlsnarf: zero-pad date.
|
||
|
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=298605
|
||
|
---
|
||
|
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
|
||
|
|
||
|
--- a/urlsnarf.c
|
||
|
+++ b/urlsnarf.c
|
||
|
@@ -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);
|
||
|
|