From 428659fe51ba0d317daf5057dc51a424a16c3ced Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Mon, 26 Jan 2009 18:13:47 +0000 Subject: [PATCH] - fixes segfault Changed files: poldek-321546.patch -> 1.1 --- poldek-321546.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 poldek-321546.patch diff --git a/poldek-321546.patch b/poldek-321546.patch new file mode 100644 index 0000000..201c7df --- /dev/null +++ b/poldek-321546.patch @@ -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*)×[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]); -- 2.44.0