From 913fa87b1c3f5ffad9839c080b042fd77239386b Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Fri, 3 Apr 2009 18:59:23 -0400 Subject: [PATCH] Fix disallowing certain tags. --- cmd/wmii/client.c | 2 +- rc/rc.wmii.rc | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/wmii/client.c b/cmd/wmii/client.c index 091abcde..5d3df760 100644 --- a/cmd/wmii/client.c +++ b/cmd/wmii/client.c @@ -996,7 +996,7 @@ client_setviews(Client *c, char **tags) { static int bsstrcmp(const void *a, const void *b) { - return strcmp((char*)a, (char*)b); + return strcmp((char*)a, *(char**)b); } static int diff --git a/rc/rc.wmii.rc b/rc/rc.wmii.rc index 6eabda56..2c31ad2b 100755 --- a/rc/rc.wmii.rc +++ b/rc/rc.wmii.rc @@ -1,4 +1,5 @@ #!/usr/bin/env wmii9rc +cd scriptname=$0 oldpath=$path; path=($PLAN9/bin $path) . wmii.rc wmiirc # Include utility functions