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