summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2017-04-10 17:30:11 +0200
committerDave Davenport <qball@gmpclient.org>2017-04-10 17:30:11 +0200
commit27339bf9bfebe34539ace0a27f67aa947f8540f2 (patch)
tree3de93a061d79b00a568cc75fe3c02261107303c0 /source
parent4156d142fe9429cbf35856a2687566f05ab10177 (diff)
Avoid possible buffer overflow
Diffstat (limited to 'source')
-rw-r--r--source/theme.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/theme.c b/source/theme.c
index f5ee02e4..b2429c6f 100644
--- a/source/theme.c
+++ b/source/theme.c
@@ -616,7 +616,7 @@ void rofi_theme_convert_old ( void )
"* { bordercolor: %s; }",
"* { separatorcolor: %s; }"
};
- for ( int i = 0; retv && retv[i]; i++ ) {
+ for ( int i = 0; retv && retv[i] && i < 3; i++ ) {
char *str = g_strdup_printf ( conf[i], retv[i] );
rofi_theme_parse_string ( str );
g_free ( str );