diff --git a/bbswitch.c b/bbswitch.c index aa0f2a5..c1984f9 100644 --- a/bbswitch.c +++ b/bbswitch.c @@ -71,12 +71,12 @@ static struct notifier_block nb; /* whether the card was off before suspend or not; on: 0, off: 1 */ int dis_before_suspend_disabled; -static char *buffer_to_string(const char buffer[], char *target) { +static char *buffer_to_string(const char *buffer, size_t n, char *target) { int i; - for (i=0; i