mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-10 00:45:41 +01:00
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:
parent
3616b1fe3c
commit
95788fea25
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ static int state_lock_(const char *file, int lock, int timeout)
|
|||
int fd = -1, err = 0;
|
||||
struct flock lck;
|
||||
struct stat st;
|
||||
char lcktxt[11];
|
||||
char lcktxt[12];
|
||||
char *nfile;
|
||||
|
||||
if (!do_lock)
|
||||
|
|
Loading…
Reference in a new issue