pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/time/ical Fix segfault on NetBSD-current.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/5386461ff6e6
branches:  trunk
changeset: 538260:5386461ff6e6
user:      markd <markd%pkgsrc.org@localhost>
date:      Sun Feb 03 19:36:33 2008 +0000

description:
Fix segfault on NetBSD-current.

diffstat:

 time/ical/Makefile         |   4 ++--
 time/ical/distinfo         |   3 ++-
 time/ical/patches/patch-ab |  33 +++++++++++++++++++++++++++++++++
 3 files changed, 37 insertions(+), 3 deletions(-)

diffs (62 lines):

diff -r aeb6b4189fad -r 5386461ff6e6 time/ical/Makefile
--- a/time/ical/Makefile        Sun Feb 03 16:10:22 2008 +0000
+++ b/time/ical/Makefile        Sun Feb 03 19:36:33 2008 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.19 2006/03/04 21:30:52 jlam Exp $
+# $NetBSD: Makefile,v 1.20 2008/02/03 19:36:33 markd Exp $
 
 DISTNAME=      ical-2.3.1
-PKGREVISION=   2
+PKGREVISION=   3
 CATEGORIES=    time
 MASTER_SITES=  http://www.annexia.org/_file/
 
diff -r aeb6b4189fad -r 5386461ff6e6 time/ical/distinfo
--- a/time/ical/distinfo        Sun Feb 03 16:10:22 2008 +0000
+++ b/time/ical/distinfo        Sun Feb 03 19:36:33 2008 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.7 2005/02/23 19:14:54 wiz Exp $
+$NetBSD: distinfo,v 1.8 2008/02/03 19:36:33 markd Exp $
 
 SHA1 (ical-2.3.1.tar.gz) = 98649b7e1fbad9c13356eb5dded693d81b2252f2
 RMD160 (ical-2.3.1.tar.gz) = 98642da1ef330ca3a5cf099508fb09dcdeb208be
 Size (ical-2.3.1.tar.gz) = 264576 bytes
 SHA1 (patch-aa) = 238d2d4ce21cc60ec0eaae854aa722ca0486701d
+SHA1 (patch-ab) = ccfdc593988195128c837bac36d706150b5a7df6
diff -r aeb6b4189fad -r 5386461ff6e6 time/ical/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/time/ical/patches/patch-ab        Sun Feb 03 19:36:33 2008 +0000
@@ -0,0 +1,33 @@
+$NetBSD: patch-ab,v 1.4 2008/02/03 19:36:33 markd Exp $
+
+--- dateeditor.C.orig  2004-03-12 00:26:56.000000000 +1300
++++ dateeditor.C
+@@ -148,12 +148,12 @@ int Cmd_HiliteLoop(ClientData, Tcl_Inter
+       char buffer[20];
+       sprintf(buffer, "%d", list[i].date.EpochDays());
+       if (Tcl_SetVar(tcl, dvar, buffer, 0) == NULL) {
+-          free((char*) strlist);
++          Tcl_Free((char*) strlist);
+           TCL_Error(tcl, "could not set loop variable");
+       }
+ 
+       if (Tcl_SetVar(tcl, hvar, (char*)hilite, 0) == NULL) {
+-          free((char*) strlist);
++          Tcl_Free((char*) strlist);
+           TCL_Error(tcl, "could not set loop variable");
+       }
+ 
+@@ -165,11 +165,11 @@ int Cmd_HiliteLoop(ClientData, Tcl_Inter
+       if (result == TCL_BREAK) break;
+ 
+       // Error of some sort
+-      free((char*) strlist);
++      Tcl_Free((char*) strlist);
+       return result;
+     }
+ 
+-    free((char*) strlist);
++    Tcl_Free((char*) strlist);
+     TCL_Return(tcl, "");
+ }
+ 



Home | Main Index | Thread Index | Old Index