mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-11-15 17:47:09 +00:00
Fix compiling without C99
This commit is contained in:
parent
d3aafc4a75
commit
a2c9ac648d
@ -762,6 +762,7 @@ void print_blink(struct text_object *obj, char *p, int p_max_size)
|
||||
char buf[max_user_text];
|
||||
static int visible = 1;
|
||||
static int last_len = 0;
|
||||
int i;
|
||||
|
||||
memset(buf, 0, max_user_text);
|
||||
|
||||
@ -769,7 +770,7 @@ void print_blink(struct text_object *obj, char *p, int p_max_size)
|
||||
generate_text_internal(buf, max_user_text, *obj->sub);
|
||||
last_len = strlen(buf);
|
||||
} else {
|
||||
for (int i = 0; i < last_len; i++)
|
||||
for (i = 0; i < last_len; i++)
|
||||
buf[i] = ' ';
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user