several changes, new stuff

This commit is contained in:
Anselm R. Garbe
2006-07-11 18:53:41 +02:00
parent b1669b5c48
commit d6e0e6e987
7 changed files with 34 additions and 19 deletions

2
util.c
View File

@ -134,7 +134,7 @@ pipe_spawn(char *buf, unsigned int len, Display *dpy, char *argv[])
n += l;
}
close(pfd[0]);
buf[n - 1] = 0;
buf[n < len ? n : len - 1] = 0;
}
wait(0);
}