diff options
author | Michael Stapelberg <michael@stapelberg.de> | 2012-07-12 08:16:40 +0200 |
---|---|---|
committer | Michael Stapelberg <michael@stapelberg.de> | 2012-07-12 08:16:40 +0200 |
commit | dea8703abaf8deb94a1212dde25b211ad8411846 (patch) | |
tree | 62c051b6725dedc717f842f027d992991c0646bb /src/print_battery_info.c | |
parent | 141f45e7928c433ddbfc63c875973448fa2fc0e8 (diff) |
Bugfix: Properly skip "consumption", not "consumptionbuf" (Thanks mloskot)
Fixes #752
Diffstat (limited to 'src/print_battery_info.c')
-rw-r--r-- | src/print_battery_info.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/print_battery_info.c b/src/print_battery_info.c index 3c33d3e..b992efb 100644 --- a/src/print_battery_info.c +++ b/src/print_battery_info.c @@ -264,7 +264,7 @@ void print_battery_info(yajl_gen json_gen, char *buffer, int number, const char walk += strlen("emptytime"); } else if (strncmp(walk+1, "consumption", strlen("consumption")) == 0) { outwalk += sprintf(outwalk, "%s", consumptionbuf); - walk += strlen("consumptionbuf"); + walk += strlen("consumption"); } } |