]> git.alsa-project.org Git - alsa-utils.git/commitdiff
alsactl: daemon.c - fix gcc warning in write_pid_file()
authorJaroslav Kysela <perex@perex.cz>
Thu, 14 May 2020 14:48:57 +0000 (16:48 +0200)
committerJaroslav Kysela <perex@perex.cz>
Thu, 14 May 2020 14:49:06 +0000 (16:49 +0200)
alsactl/daemon.c

index 1d98caaeea4fc6fe8b070a549f48d635ca80873c..65f7ac1cdd0ab43f31c8860496556df96abbd756 100644 (file)
@@ -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);