mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-08 23:15:41 +01:00
alsactl: daemon.c - fix gcc warning in write_pid_file()
This commit is contained in:
parent
2cfeffb6e8
commit
f9abf36d34
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue