From e40b38c767dc81cab28bd65d94b53f6e6cd6f221 Mon Sep 17 00:00:00 2001 From: Caolan McNamara Date: Thu, 11 Jan 2007 17:17:41 +0000 Subject: [PATCH] fix out of range --- hunspell-1.1.4-defaultdictfromlang.patch | 4 ++-- hunspell.spec | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/hunspell-1.1.4-defaultdictfromlang.patch b/hunspell-1.1.4-defaultdictfromlang.patch index cb71ee3..335f051 100644 --- a/hunspell-1.1.4-defaultdictfromlang.patch +++ b/hunspell-1.1.4-defaultdictfromlang.patch @@ -12,8 +12,8 @@ + else { + int len = strlen(dicname); + for (int i = 0; i < len; ++i) { -+ if ((dicname[i] == '_') && (i+2 < len)) { -+ dicname[i+2] = 0; ++ if ((dicname[i] == '_') && (i+3 < len)) { ++ dicname[i+3] = 0; + break; + } + } diff --git a/hunspell.spec b/hunspell.spec index 9e4f2b6..ec11a5b 100644 --- a/hunspell.spec +++ b/hunspell.spec @@ -1,7 +1,7 @@ Name: hunspell Summary: Hunspell is a spell checker and morphological analyzer library Version: 1.1.4 -Release: 3%{?dist} +Release: 4%{?dist} Source: %{name}-%{version}.tar.gz Group: System Environment/Libraries URL: http://hunspell.sourceforge.net/ @@ -81,6 +81,9 @@ rm -rf $RPM_BUILD_ROOT %{_bindir}/unmunch %changelog +* Thu Jan 11 2007 Caolan McNamara - 1.1.4-4 +- fix out of range + * Fri Dec 15 2006 Caolan McNamara - 1.1.4-3 - hunspell#1616353 simple c api for hunspell