diff options
-rw-r--r-- | news/pan/Makefile | 1 | ||||
-rw-r--r-- | news/pan/files/patch-pan_data_article.cc | 9 |
2 files changed, 6 insertions, 4 deletions
diff --git a/news/pan/Makefile b/news/pan/Makefile index 5edf474923d8..984b23d5afe3 100644 --- a/news/pan/Makefile +++ b/news/pan/Makefile @@ -8,6 +8,7 @@ PORTNAME= pan PORTVERSION= 0.128 +PORTREVISION= 1 CATEGORIES= news gnome MASTER_SITES= http://pan.rebelbase.com/download/releases/${PORTVERSION}/source/ DIST_SUBDIR= gnome2 diff --git a/news/pan/files/patch-pan_data_article.cc b/news/pan/files/patch-pan_data_article.cc index c461c7d93f26..e050cb84cbbb 100644 --- a/news/pan/files/patch-pan_data_article.cc +++ b/news/pan/files/patch-pan_data_article.cc @@ -1,11 +1,12 @@ ---- pan/data/article.cc.orig Sun Apr 22 15:17:04 2007 -+++ pan/data/article.cc Sun Apr 22 15:17:44 2007 -@@ -153,7 +153,7 @@ +--- pan/data/article.cc.orig Mon Apr 23 16:21:51 2007 ++++ pan/data/article.cc Mon Apr 23 16:23:29 2007 +@@ -153,7 +153,8 @@ kc = &key.back(); mc = &mid.back(); - ke = key.str + 1 + std::max (int(b), (int)minlen - UCHAR_MAX); -+ ke = key.str + 1 + std::max ((char)b, (char)(minlen - UCHAR_MAX)); ++ ke = std::max (key.str + b + 1, ++ key.str + key.len - UCHAR_MAX); while (kc>ke) if (*kc-- != *mc--) { ++kc; break; } const size_t e (&key.back() - kc); |