alsactl: Fix the string size for the lock file contents

The string length is 10 characters + LF + '\0' = 12 characters.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Jaroslav Kysela 2013-04-15 14:44:13 +02:00
parent 3616b1fe3c
commit 95788fea25

View file

@ -35,7 +35,7 @@ static int state_lock_(const char *file, int lock, int timeout)
int fd = -1, err = 0; int fd = -1, err = 0;
struct flock lck; struct flock lck;
struct stat st; struct stat st;
char lcktxt[11]; char lcktxt[12];
char *nfile; char *nfile;
if (!do_lock) if (!do_lock)