summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaroslav Kysela <perex@perex.cz>2013-04-15 14:44:13 +0200
committerJaroslav Kysela <perex@perex.cz>2013-04-15 14:44:13 +0200
commit95788fea25c1a59985828d4b91af0772d077600b (patch)
tree1280612226672a3c74edbfd90cd33e9915298006
parent3616b1fe3ca603832b2f88abeb722cba2f0dde7e (diff)
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>
-rw-r--r--alsactl/lock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/alsactl/lock.c b/alsactl/lock.c
index d34d013..fce208b 100644
--- a/alsactl/lock.c
+++ b/alsactl/lock.c
@@ -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)