projects
/
monky
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f7dcc66
)
Bugfix: battery_bar should also work without argument
author
Nikolas Garofil
<nikolas@garofil.be>
Sun, 11 Apr 2010 17:49:27 +0000
(19:49 +0200)
committer
Nikolas Garofil
<nikolas@garofil.be>
Sun, 11 Apr 2010 17:49:27 +0000
(19:49 +0200)
src/core.c
patch
|
blob
|
history
diff --git
a/src/core.c
b/src/core.c
index
32aa33a
..
a7132c6
100644
(file)
--- a/
src/core.c
+++ b/
src/core.c
@@
-280,11
+280,11
@@
struct text_object *construct_text_object(const char *s, const char *arg, long
END OBJ(battery_bar, 0)
char bat[64];
if (arg) {
- arg = scan_bar(obj, arg);
sscanf(arg, "%63s", bat);
} else {
strcpy(bat, "BAT0");
}
+ scan_bar(obj, bat);
obj->data.s = strndup(bat, text_buffer_size);
#endif /* !__OpenBSD__ */