Skip to content

Commit

Permalink
Separate wakelock name and timeout with space when writing to sysfs
Browse files Browse the repository at this point in the history
While the space was missing caused permanent wakelock instead of a
one that would be automatically cancelled.
  • Loading branch information
spiiroin committed Jan 14, 2014
1 parent 3c75a09 commit 634c645
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libwakelock.c
Expand Up @@ -188,7 +188,7 @@ void wakelock_lock(const char *name, long long ns)
if( ns < 0 ) {
lwl_concat(tmp, sizeof tmp, name, "\n", NULL);
} else {
lwl_concat(tmp, sizeof tmp, name,
lwl_concat(tmp, sizeof tmp, name, " ",
lwl_number(num, sizeof num, ns),
"\n", NULL);
}
Expand Down

0 comments on commit 634c645

Please sign in to comment.