forked from enlightenment/efl
parent
2174b972fc
commit
1e8074954f
|
@ -96,7 +96,7 @@ eina_unicode_strnlen(const Eina_Unicode *ustr, int n)
|
||||||
{
|
{
|
||||||
const Eina_Unicode *end;
|
const Eina_Unicode *end;
|
||||||
const Eina_Unicode *last = ustr + n; /* technically not portable ;-) */
|
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;
|
return end - ustr;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue