diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/fe-common/core/formats.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/fe-common/core/formats.c b/src/fe-common/core/formats.c index 0b5ff76f..d0706ff6 100644 --- a/src/fe-common/core/formats.c +++ b/src/fe-common/core/formats.c @@ -624,9 +624,11 @@ int strip_real_length(const char *str, int len, *last_color_len = 2; } str += 2; - } else if (!IS_COLOR_CODE(*str)) { - if (len-- == 0) - break; + } else { + if (!IS_COLOR_CODE(*str)) { + if (len-- == 0) + break; + } str++; } } |