diff options
Diffstat (limited to '')
| -rw-r--r-- | util.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -134,7 +134,7 @@ pipe_spawn(char *buf, unsigned int len, Display *dpy, char *argv[]) | |||
| 134 | n += l; | 134 | n += l; |
| 135 | } | 135 | } |
| 136 | close(pfd[0]); | 136 | close(pfd[0]); |
| 137 | buf[n - 1] = 0; | 137 | buf[n < len ? n : len - 1] = 0; |
| 138 | } | 138 | } |
| 139 | wait(0); | 139 | wait(0); |
| 140 | } | 140 | } |
