commit c017512c11d31a40f2bfbbcceb41d01a47beca5d
parent a95494a9f736377e9c30c62fda61efce6f4f87a2
Author: Kris Maglione <jg@suckless.org>
Date: Sat, 22 Mar 2008 13:21:29 -0400
Fix tagging bug.
Diffstat:
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/cmd/wmii/_util.c b/cmd/wmii/_util.c
@@ -124,6 +124,10 @@ spawn3l(int fd[3], const char *file, ...) {
return spawn3(fd, file, argv);
}
+/* Only works on *BSD (only FreeBSD confirmed). GDB on my Linux
+ * doesn't like -x <pipe>, and /proc/%d/exe is the correct /proc
+ * path.
+ */
void
backtrace(char *btarg) {
char *proc, *spid;
diff --git a/cmd/wmii/client.c b/cmd/wmii/client.c
@@ -1085,7 +1085,7 @@ apply_tags(Client *c, const char *tags) {
if(last == '-')
add = false;
if(last == '\0')
- buf[n] = '\0';
+ break;
}
toks[j] = nil;