From ec12cff9f46f326d8349e00f1617c83fcfb61800 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Bouchaud=20=28yoz=29?= Date: Thu, 3 Nov 2016 10:58:44 +0100 Subject: [PATCH] mixer: fix a typo spotted by coverity CID: 1365340 --- src/modules/mixer/e_mod_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/mixer/e_mod_main.c b/src/modules/mixer/e_mod_main.c index 29cb04656..954fd19ae 100644 --- a/src/modules/mixer/e_mod_main.c +++ b/src/modules/mixer/e_mod_main.c @@ -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);