diff options
author | marcus <marcus@FreeBSD.org> | 2007-11-05 12:33:45 +0800 |
---|---|---|
committer | marcus <marcus@FreeBSD.org> | 2007-11-05 12:33:45 +0800 |
commit | 398a780838c48a4c3a7a7b3555f38224c23b509a (patch) | |
tree | bd50dfc4f68bb961621545aaac48ef4287d84321 /databases/evolution-data-server | |
parent | 9da125f6415d13396069b6ce5171e22b8e7d62f9 (diff) | |
download | freebsd-ports-gnome-398a780838c48a4c3a7a7b3555f38224c23b509a.tar.gz freebsd-ports-gnome-398a780838c48a4c3a7a7b3555f38224c23b509a.tar.zst freebsd-ports-gnome-398a780838c48a4c3a7a7b3555f38224c23b509a.zip |
Fix an off-by-one error that triggered a segfault for first-time users.
PR: 117791
Submitted by: "Robert C. Noland III" <rnoland@2hip.net>
Approved by: portmgr (implicit)
Diffstat (limited to 'databases/evolution-data-server')
-rw-r--r-- | databases/evolution-data-server/Makefile | 2 | ||||
-rw-r--r-- | databases/evolution-data-server/files/patch-calendar_libical_src_libical_icaltz-util.c | 13 |
2 files changed, 12 insertions, 3 deletions
diff --git a/databases/evolution-data-server/Makefile b/databases/evolution-data-server/Makefile index 2419ec666875..17d6840dadd2 100644 --- a/databases/evolution-data-server/Makefile +++ b/databases/evolution-data-server/Makefile @@ -8,7 +8,7 @@ PORTNAME= evolution-data-server PORTVERSION= 1.12.1 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= databases gnome MASTER_SITES= ${MASTER_SITE_GNOME} MASTER_SITE_SUBDIR= sources/${PORTNAME}/${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/} diff --git a/databases/evolution-data-server/files/patch-calendar_libical_src_libical_icaltz-util.c b/databases/evolution-data-server/files/patch-calendar_libical_src_libical_icaltz-util.c index 766abb5425d9..6018da3bbe83 100644 --- a/databases/evolution-data-server/files/patch-calendar_libical_src_libical_icaltz-util.c +++ b/databases/evolution-data-server/files/patch-calendar_libical_src_libical_icaltz-util.c @@ -1,5 +1,5 @@ ---- calendar/libical/src/libical/icaltz-util.c.orig 2007-08-24 02:48:28.000000000 -0400 -+++ calendar/libical/src/libical/icaltz-util.c 2007-08-27 16:23:59.000000000 -0400 +--- calendar/libical/src/libical/icaltz-util.c.orig 2007-10-12 02:31:10.000000000 -0400 ++++ calendar/libical/src/libical/icaltz-util.c 2007-11-03 12:22:24.000000000 -0400 @@ -23,6 +23,15 @@ #include <string.h> #if defined(sun) && defined(__SVR4) @@ -16,3 +16,12 @@ #else #include <byteswap.h> #include <endian.h> +@@ -148,7 +157,7 @@ + idx = trans_idx [i]; + types [idx].isdst ? (*dstidx = i) : (*stdidx = i); + +- if (i >= num_trans) ++ if (i >= num_trans - 1) + i--; + else + i++; |