summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--textproc/aspell/Makefile1
-rw-r--r--textproc/aspell/files/patch-modules__speller__default__affix.cpp14
2 files changed, 15 insertions, 0 deletions
diff --git a/textproc/aspell/Makefile b/textproc/aspell/Makefile
index 0a22b72c94a8..601dca4d2b2e 100644
--- a/textproc/aspell/Makefile
+++ b/textproc/aspell/Makefile
@@ -7,6 +7,7 @@
PORTNAME= aspell
PORTVERSION= 0.60.6.1
+PORTREVISION= 1
CATEGORIES= textproc
MASTER_SITES= ${MASTER_SITE_GNU}
MASTER_SITE_SUBDIR= aspell
diff --git a/textproc/aspell/files/patch-modules__speller__default__affix.cpp b/textproc/aspell/files/patch-modules__speller__default__affix.cpp
new file mode 100644
index 000000000000..4959b4089f72
--- /dev/null
+++ b/textproc/aspell/files/patch-modules__speller__default__affix.cpp
@@ -0,0 +1,14 @@
+--- modules/speller/default/affix.cpp.orig 2012-01-25 19:46:47.684690459 +0200
++++ modules/speller/default/affix.cpp 2012-01-25 19:46:56.385691084 +0200
+@@ -796,7 +796,10 @@ bool AffixMgr::suffix_check (const Looku
+ if (se->check(linf, word, ci, gi, sfxopts, ppfx)) return true;
+ se = se->next;
+ }
+-
++
++ if (word.size() == 0)
++ return false;
++
+ // now handle the general case
+ byte sp = *((const byte *)(word + word.size() - 1));
+ SfxEntry * sptr = sStart[sp];