Fix end points

SVN revision: 50708
This commit is contained in:
Brett Nash 2010-07-31 05:24:45 +00:00
parent 2174b972fc
commit 1e8074954f
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ eina_unicode_strnlen(const Eina_Unicode *ustr, int n)
{
const Eina_Unicode *end;
const Eina_Unicode *last = ustr + n; /* technically not portable ;-) */
for (end = ustr; *end && last < end; end++)
for (end = ustr; *end && end < last; end++)
;
return end - ustr;
}