mixer: fix a typo spotted by coverity

CID: 1365340
This commit is contained in:
Michaël Bouchaud (yoz) 2016-11-03 10:58:44 +01:00
parent 1a4450556b
commit ec12cff9f4
1 changed files with 1 additions and 1 deletions

View File

@ -891,7 +891,7 @@ _get_ppid(pid_t pid)
return -1;
}
if ((read(fd, buf, sizeof(buf))) < 4) return -1;
buf[sizeof(buf) - 1] = '0';
buf[sizeof(buf) - 1] = 0;
s = strrchr(buf, ')');
s += 3;
ppid = atoi(s);