From: Michael Ow Date: Fri, 8 Jul 2011 17:21:13 +0000 (+0000) Subject: ICU-8660 Skip the current source char when searching for the next escape character X-Git-Tag: milestone-59-0-1~4670 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=974b996cb335d9b137e9d1623bfc0788cd50e2ef;p=icu ICU-8660 Skip the current source char when searching for the next escape character X-SVN-Rev: 30296 --- diff --git a/icu4c/source/common/ucnv_ct.c b/icu4c/source/common/ucnv_ct.c index 9fc80c6765d..389a8bc023a 100644 --- a/icu4c/source/common/ucnv_ct.c +++ b/icu4c/source/common/ucnv_ct.c @@ -180,7 +180,7 @@ _CompoundTextgetName(const UConverter* cnv); static int32_t findNextEsc(const char *source, const char *sourceLimit) { int32_t length = sourceLimit - source; int32_t i; - for (i = 0; i < length; i++) { + for (i = 1; i < length; i++) { if (*(source + i) == 0x1B) { return i; }