fix out of bounds access. CID 1231069

This commit is contained in:
Boris Faure 2014-08-13 03:18:43 +02:00
parent c14f6949ae
commit 572f2301f5
1 changed files with 1 additions and 1 deletions

View File

@ -2597,7 +2597,7 @@ _codepoint_is_wordsep(const Eina_Unicode g)
0xff65,
0xe002a
};
size_t imax = sizeof(wordsep)/sizeof(wordsep[0]),
size_t imax = sizeof(wordsep)/sizeof(wordsep[0]) - 1,
imin = 0;
while (imax >= imin)