Bug 710967 - Incorrect argument passed to strncmp in AffixMgr::parse_convtable. r=gavin

This commit is contained in:
Jared Wein 2011-12-15 22:10:11 -08:00
parent 0b3e27ea96
commit abadfb4f84
2 changed files with 2 additions and 2 deletions

View File

@ -36,7 +36,7 @@
******* END LICENSE BLOCK *******
Hunspell Version: 1.3.2
Additional Patches:
Additional Patches: Bug 710967
Hunspell Author: László Németh
MySpell Author: Kevin Hendricks & David Einstein

View File

@ -3705,7 +3705,7 @@ int AffixMgr::parse_convtable(char * line, FileMgr * af, RepList ** rl, const c
if (*piece != '\0') {
switch(i) {
case 0: {
if (strncmp(piece, keyword, sizeof(keyword)) != 0) {
if (strncmp(piece, keyword, strlen(keyword)) != 0) {
HUNSPELL_WARNING(stderr, "error: line %d: table is corrupt\n", af->getlinenum());
delete *rl;
*rl = NULL;