Enlightenment CVS committal Author : mekius Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/src/lib Modified Files: ewl_text_fmt.c Log Message: Fixed segv in ewl_entry. =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_text_fmt.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -3 -r1.2 -r1.3 --- ewl_text_fmt.c 4 Jun 2007 20:00:54 -0000 1.2 +++ ewl_text_fmt.c 15 Jun 2007 02:39:38 -0000 1.3 @@ -434,12 +434,11 @@ DRETURN(DLEVEL_STABLE); } - ecore_dlist_goto_first(fmt->nodes); + node = ecore_dlist_goto_first(fmt->nodes); fmt->current_node.char_idx = 0; fmt->current_node.byte_idx = 0; - node = ecore_dlist_current(fmt->nodes); - while ((fmt->current_node.char_idx + node->char_len) <= idx) + while ((fmt->current_node.char_idx + node->char_len) < idx) { fmt->current_node.char_idx += node->char_len; fmt->current_node.byte_idx += node->byte_len; ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs