diff options
author | Timo Sirainen <cras@irssi.org> | 2001-07-25 19:16:21 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-07-25 19:16:21 +0000 |
commit | f81291622fee669a481ed25a15e27dddf3cbaf23 (patch) | |
tree | 84ad9dedc83d6c9fbec167abdd8b96476cf8a3ed /src/fe-common | |
parent | fc4f81c7513ef4707b342d5d736261c0026241f3 (diff) | |
download | irssi-f81291622fee669a481ed25a15e27dddf3cbaf23.zip |
buffer overflow fix
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1647 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-common')
-rw-r--r-- | src/fe-common/core/themes.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fe-common/core/themes.c b/src/fe-common/core/themes.c index a371a953..d5d2147d 100644 --- a/src/fe-common/core/themes.c +++ b/src/fe-common/core/themes.c @@ -413,9 +413,9 @@ static char *theme_format_compress_colors(THEME_REC *theme, const char *format) if (IS_OLD_FORMAT(*format, last_fg, last_bg)) { /* active color set again */ } else if (IS_FGCOLOR_FORMAT(*format) && - (*format != 'n' || format[2] == 'n') && format[1] == '%' && - IS_FGCOLOR_FORMAT(format[2])) { + IS_FGCOLOR_FORMAT(format[2]) && + (*format != 'n' || format[2] == 'n')) { /* two fg colors in a row. bg colors are so rare that we don't bother checking them */ |