mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2024-12-24 11:53:25 +00:00
removed segfault with cap file
This commit is contained in:
parent
e01d93afa8
commit
dc842b0312
@ -293,6 +293,11 @@ int add_word(const char *word)
|
|||||||
ptr_correct = (char **)realloc(spell_correct, sizeof (char *)*
|
ptr_correct = (char **)realloc(spell_correct, sizeof (char *)*
|
||||||
spell_capacity);
|
spell_capacity);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
ptr_lower = spell_lower;
|
||||||
|
ptr_correct = spell_correct;
|
||||||
|
}
|
||||||
size_t len = strlen(word);
|
size_t len = strlen(word);
|
||||||
new_lower = (char *)malloc(len + 1);
|
new_lower = (char *)malloc(len + 1);
|
||||||
new_correct = (char *)malloc(len + 1);
|
new_correct = (char *)malloc(len + 1);
|
||||||
|
Loading…
Reference in New Issue
Block a user