fix out of range

This commit is contained in:
Caolan McNamara 2007-01-11 17:17:41 +00:00
parent c7f444a2c4
commit e40b38c767
2 changed files with 6 additions and 3 deletions

View File

@ -12,8 +12,8 @@
+ else { + else {
+ int len = strlen(dicname); + int len = strlen(dicname);
+ for (int i = 0; i < len; ++i) { + for (int i = 0; i < len; ++i) {
+ if ((dicname[i] == '_') && (i+2 < len)) { + if ((dicname[i] == '_') && (i+3 < len)) {
+ dicname[i+2] = 0; + dicname[i+3] = 0;
+ break; + break;
+ } + }
+ } + }

View File

@ -1,7 +1,7 @@
Name: hunspell Name: hunspell
Summary: Hunspell is a spell checker and morphological analyzer library Summary: Hunspell is a spell checker and morphological analyzer library
Version: 1.1.4 Version: 1.1.4
Release: 3%{?dist} Release: 4%{?dist}
Source: %{name}-%{version}.tar.gz Source: %{name}-%{version}.tar.gz
Group: System Environment/Libraries Group: System Environment/Libraries
URL: http://hunspell.sourceforge.net/ URL: http://hunspell.sourceforge.net/
@ -81,6 +81,9 @@ rm -rf $RPM_BUILD_ROOT
%{_bindir}/unmunch %{_bindir}/unmunch
%changelog %changelog
* Thu Jan 11 2007 Caolan McNamara <caolanm@redhat.com> - 1.1.4-4
- fix out of range
* Fri Dec 15 2006 Caolan McNamara <caolanm@redhat.com> - 1.1.4-3 * Fri Dec 15 2006 Caolan McNamara <caolanm@redhat.com> - 1.1.4-3
- hunspell#1616353 simple c api for hunspell - hunspell#1616353 simple c api for hunspell