]> git.pld-linux.org Git - packages/poldek.git/commitdiff
- fixes segfault
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 26 Jan 2009 18:13:47 +0000 (18:13 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    poldek-321546.patch -> 1.1

poldek-321546.patch [new file with mode: 0644]

diff --git a/poldek-321546.patch b/poldek-321546.patch
new file mode 100644 (file)
index 0000000..201c7df
--- /dev/null
@@ -0,0 +1,13 @@
+--- poldek-0.30-cvs20080820.23/pkgu.c~ 2009-01-26 20:12:20.700457198 +0200
++++ poldek-0.30-cvs20080820.23/pkgu.c  2009-01-26 20:12:00.937750881 +0200
+@@ -576,8 +576,9 @@
+     nbuf = n_buf_new(1024);
+     for (i=0; i < e_name.cnt; i++) {
+         char ts[32];
++        time_t t = times[i];
+-        strftime(ts, sizeof(ts), "%Y-%m-%d %H:%M:%S", gmtime((time_t*)&times[i]));
++        strftime(ts, sizeof(ts), "%Y-%m-%d %H:%M:%S", gmtime((time_t*)&t));
+         n_buf_printf(nbuf, "* %s %s\n", ts, names[i]);
+         n_buf_printf(nbuf, "%s\n\n", texts[i]);
This page took 0.056394 seconds and 4 git commands to generate.