Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/src/lib


Modified Files:
        ewl_text.c 


Log Message:
stop endless loop, when you insert an invalid UTF-8 string

===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_text.c,v
retrieving revision 1.145
retrieving revision 1.146
diff -u -3 -r1.145 -r1.146
--- ewl_text.c  13 Dec 2006 07:18:59 -0000      1.145
+++ ewl_text.c  17 Dec 2006 16:45:28 -0000      1.146
@@ -4047,6 +4047,8 @@
        {
                if (ewl_text_char_is_legal_utf8(tmp)) 
                        tmp = ewl_text_text_next_char(tmp, NULL);
+               else
+                       tmp++;
 
                clen++;
        }



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to