From 8c6352eae668e43def6a3003476597b93a4b7aff Mon Sep 17 00:00:00 2001 From: Carsten Haitzler Date: Fri, 6 Jun 2003 00:41:07 +0000 Subject: [PATCH] fix corner case of starting at nul terminator byte at end and getting prev charater of utf-8 string SVN revision: 6983 --- legacy/evas/src/lib/engines/common/evas_font_main.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/legacy/evas/src/lib/engines/common/evas_font_main.c b/legacy/evas/src/lib/engines/common/evas_font_main.c index 58eef5cdd5..1632ae6610 100644 --- a/legacy/evas/src/lib/engines/common/evas_font_main.c +++ b/legacy/evas/src/lib/engines/common/evas_font_main.c @@ -151,8 +151,6 @@ evas_common_font_utf8_get_prev(unsigned char *buf, int *iindex) int index = *iindex, r, istart = *iindex; unsigned char d = buf[index++], d2, d3, d4; - if (!d) - return 0; if (d < 0x80) { r = d;