From 1e8074954f807b69b2d8d302961e0714bb379b37 Mon Sep 17 00:00:00 2001 From: Brett Nash Date: Sat, 31 Jul 2010 05:24:45 +0000 Subject: [PATCH] Fix end points SVN revision: 50708 --- legacy/eina/src/lib/eina_unicode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/legacy/eina/src/lib/eina_unicode.c b/legacy/eina/src/lib/eina_unicode.c index 4f0431b976..6cf950e3c9 100644 --- a/legacy/eina/src/lib/eina_unicode.c +++ b/legacy/eina/src/lib/eina_unicode.c @@ -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; }