mirror of
https://github.com/davatorium/rofi.git
synced 2025-03-03 16:05:20 -05: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…
Add table
Reference in a new issue