commit 2dbd98b5d5a14014de49645331b45a78c9863b77
parent c53c8b2e2bf1fabd27a872daeec718627eaafc4c
Author: leitner <leitner>
Date: Mon, 12 Jan 2004 00:30:10 +0000
read two bytes too many (Raffael Himmelreich)
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pidfilehack.c b/pidfilehack.c
@@ -37,7 +37,7 @@ int main(int argc, char* argv[]) {
int fd=open(argv[2],O_RDONLY);
if (fd>=0) {
static char buf[100] = "-P";
- int len=read(fd,buf+2,100);
+ int len=read(fd,buf+2,98);
close(fd);
if (len>0) {
char* _argv[] = { "msvc", 0, 0, 0 };