From f9abf36d34765e1fdb2af218c1da304607924a85 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Thu, 14 May 2020 16:48:57 +0200 Subject: [PATCH] alsactl: daemon.c - fix gcc warning in write_pid_file() --- alsactl/daemon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alsactl/daemon.c b/alsactl/daemon.c index 1d98caa..65f7ac1 100644 --- a/alsactl/daemon.c +++ b/alsactl/daemon.c @@ -293,7 +293,7 @@ static long read_pid_file(const char *pidfile) static int write_pid_file(const char *pidfile) { int fd, err; - char pid_txt[12]; + char pid_txt[14]; sprintf(pid_txt, "%10li\n", (long)getpid()); fd = open(pidfile, O_WRONLY|O_CREAT|O_EXCL, 0600);