mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-12-27 04:32:55 +00:00
solve printf warning
This commit is contained in:
parent
0ab2efc2b2
commit
15d9a95c95
@ -2395,7 +2395,7 @@ void print_distribution(struct text_object *obj, char *p, int p_max_size)
|
||||
if(buf[i-1] == '(' && buf[i] >= 'A' && buf[i] <= 'Z') break;
|
||||
}
|
||||
if(i < bytes_read) {
|
||||
snprintf(p, p_max_size, &buf[i]);
|
||||
snprintf(p, p_max_size, "%s", &buf[i]);
|
||||
for(i=1; p[i]; i++) {
|
||||
if(p[i-1] == ' ' && p[i] >= '0' && p[i] <= '9') {
|
||||
p[i-1] = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user