1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-18 13:54:36 -05: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 ( index < 10 ) {
char str[2] = "0";
str[0] = ((index+1)%10)+'0';
char str[2] = {
((index+1)%10)+'0',
'\0'
};
textbox_text( lv->boxes[tb].index, str );
} else {
textbox_text( lv->boxes[tb].index, " " );