mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-12-27 20:44:56 +00:00
Merge branch 'master' into imlib2
This commit is contained in:
commit
a1fc53be97
@ -1,3 +1,6 @@
|
||||
2009-05-07
|
||||
* Fix occasional cpubar segfaults
|
||||
|
||||
2009-05-05
|
||||
* Added some completely pointless OpenMP optimizations(?)
|
||||
|
||||
|
@ -1299,7 +1299,7 @@ static struct text_object *construct_text_object(const char *s,
|
||||
END OBJ(cached, INFO_BUFFERS)
|
||||
#define SCAN_CPU(__arg, __var) { \
|
||||
int __offset; \
|
||||
if (__arg && sscanf(__arg, " cpu%u %n", &__var, &__offset)) \
|
||||
if (__arg && sscanf(__arg, " cpu%u %n", &__var, &__offset) == 2) \
|
||||
__arg += __offset; \
|
||||
else \
|
||||
__var = 0; \
|
||||
|
Loading…
Reference in New Issue
Block a user