diff options
Diffstat (limited to 'src/pcre2_printint.c')
-rw-r--r-- | src/pcre2_printint.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pcre2_printint.c b/src/pcre2_printint.c index 40a633c..2d30926 100644 --- a/src/pcre2_printint.c +++ b/src/pcre2_printint.c @@ -214,7 +214,7 @@ while (*ptr != '\0') static void print_custring_bylen(FILE *f, PCRE2_SPTR ptr, PCRE2_UCHAR len) { -while (len-- > 0) +for (; len > 0; len--) { register uint32_t c = *ptr++; if (PRINTABLE(c)) fprintf(f, "%c", c); else fprintf(f, "\\x{%x}", c); |