summaryrefslogtreecommitdiff
path: root/debian/patches/0005-untgz-sprintf.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/0005-untgz-sprintf.patch')
-rw-r--r--debian/patches/0005-untgz-sprintf.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/debian/patches/0005-untgz-sprintf.patch b/debian/patches/0005-untgz-sprintf.patch
new file mode 100644
index 0000000..3b36228
--- /dev/null
+++ b/debian/patches/0005-untgz-sprintf.patch
@@ -0,0 +1,33 @@
+From: Daniel Glassey <wdg@debian.org>
+Date: Sat, 3 Nov 2018 13:34:07 +0700
+Subject: remove strtime from untgz
+
+--- a/src/utilfuns/zlib/untgz.c
++++ b/src/utilfuns/zlib/untgz.c
+@@ -86,7 +86,6 @@
+ void TGZnotfound OF((const char *));
+
+ int getoct OF((char *, int));
+-char *strtime OF((time_t *));
+ int ExprMatch OF((char *,char *));
+
+ int makedir OF((char *));
+@@ -141,18 +140,6 @@
+ return result;
+ }
+
+-char *strtime (time_t *t)
+-{
+- struct tm *local;
+- static char result[32];
+-
+- local = localtime(t);
+- sprintf(result,"%2d/%02d/%4d %02d:%02d:%02d",
+- local->tm_mday, local->tm_mon+1, local->tm_year+1900,
+- local->tm_hour, local->tm_min, local->tm_sec);
+- return result;
+-}
+-
+
+ /* regular expression matching */
+