Evas textblock: Fixed an issue with string_escaped_get.
authortasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 11 Jul 2011 11:20:42 +0000 (11:20 +0000)
committertasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 11 Jul 2011 11:20:42 +0000 (11:20 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@61235 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/canvas/evas_object_textblock.c

index 0213923..05d4d69 100644 (file)
@@ -4528,6 +4528,7 @@ static inline int
 _escaped_is_eq_and_advance(const char *s, const char *s_end,
       const char **p_m, const char *m_end)
 {
+   Eina_Bool reached_end;
    for (;((s < s_end) && (*p_m < m_end)); s++, (*p_m)++)
      {
         if (*s != **p_m)
@@ -4537,10 +4538,11 @@ _escaped_is_eq_and_advance(const char *s, const char *s_end,
           }
      }
 
+   reached_end = !**p_m;
    if (*p_m < m_end)
      _escaped_advance_after_end_of_string(p_m);
 
-   return s == s_end;
+   return ((s == s_end) && reached_end);
 }
 
 /**