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:
parent
cd4607c77c
commit
de89be5c95
1 changed files with 4 additions and 2 deletions
|
@ -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, " " );
|
||||
|
|
Loading…
Reference in a new issue