aboutsummarylogtreecommitdiffstats
path: root/util.c
diff options
context:
space:
mode:
authorAnselm R. Garbe2006-07-11 18:53:41 +0200
committerAnselm R. Garbe2006-07-11 18:53:41 +0200
commit6f7e017550384d2a6b6dc4ab658cd1d0aad84229 (patch)
tree411a7d2b8b45f9362f963585d449c3d4ebdd1bba /util.c
parent93a64511985f423e224ff37c61c594a8309172d2 (diff)
downloadaur-6f7e017550384d2a6b6dc4ab658cd1d0aad84229.tar.gz
several changes, new stuff
Diffstat (limited to 'util.c')
-rw-r--r--util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util.c b/util.c
index 76ba5abb45eb..9da8f52b58cb 100644
--- a/util.c
+++ b/util.c
@@ -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);
}