]> granicus.if.org Git - icu/commitdiff
ICU-8660 Skip the current source char when searching for the next escape character
authorMichael Ow <mow@svn.icu-project.org>
Fri, 8 Jul 2011 17:21:13 +0000 (17:21 +0000)
committerMichael Ow <mow@svn.icu-project.org>
Fri, 8 Jul 2011 17:21:13 +0000 (17:21 +0000)
X-SVN-Rev: 30296

icu4c/source/common/ucnv_ct.c

index 9fc80c6765df9df7282ad152e60490d3e29a44f8..389a8bc023a93c8635c854db7565554ce091efd7 100644 (file)
@@ -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;
         }