diff --git a/pgrep.c b/pgrep.c index 3a4b3451..84f955f9 100644 --- a/pgrep.c +++ b/pgrep.c @@ -241,7 +241,6 @@ static struct el *read_pidfile(void) n = read(fd,buf+1,sizeof buf-2); if (n<1) goto out; - buf[n] = '\0'; pid = strtoul(buf+1,&endp,10); if(endp<=buf+1 || pid<1 || pid>0x7fffffff) goto out;