SOURCES: poldek-321546.patch (NEW) - fixes segfault

glen glen at pld-linux.org
Mon Jan 26 19:13:53 CET 2009


Author: glen                         Date: Mon Jan 26 18:13:53 2009 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- fixes segfault

---- Files affected:
SOURCES:
   poldek-321546.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/poldek-321546.patch
diff -u /dev/null SOURCES/poldek-321546.patch:1.1
--- /dev/null	Mon Jan 26 19:13:54 2009
+++ SOURCES/poldek-321546.patch	Mon Jan 26 19:13:47 2009
@@ -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]);
================================================================


More information about the pld-cvs-commit mailing list