1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2025-03-10 17:06:37 -04:00

[Listview] Make str code more explicit.

This commit is contained in:
Dave Davenport 2019-12-29 21:23:26 +01:00
parent cd4607c77c
commit de89be5c95

View file

@ -290,8 +290,10 @@ static void update_element ( listview *lv, unsigned int tb, unsigned int index,
if ( lv->boxes[tb].index ) { if ( lv->boxes[tb].index ) {
if ( index < 10 ) { if ( index < 10 ) {
char str[2] = "0"; char str[2] = {
str[0] = ((index+1)%10)+'0'; ((index+1)%10)+'0',
'\0'
};
textbox_text( lv->boxes[tb].index, str ); textbox_text( lv->boxes[tb].index, str );
} else { } else {
textbox_text( lv->boxes[tb].index, " " ); textbox_text( lv->boxes[tb].index, " " );