mirror of
https://github.com/lbonn/rofi
synced 2024-11-10 14:24:27 +00:00
Avoid possible buffer overflow
This commit is contained in:
parent
4156d142fe
commit
27339bf9bf
1 changed files with 1 additions and 1 deletions
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue