screen.c
changeset 973 98750b173cd5
parent 971 b2a0dfa22b1d
child 976 7c117df5d202
--- a/screen.c	Wed Aug 22 19:02:17 2007 +0200
+++ b/screen.c	Wed Aug 22 19:06:35 2007 +0200
@@ -3,6 +3,7 @@
 #include <regex.h>
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 #include <X11/Xutil.h>
 
 /* static */
@@ -245,7 +246,7 @@
 	}
 	else {
 		for(i = 0; i < nlayouts; i++)
-			if(arg == layouts[i].symbol)
+			if(!strcmp(arg, layouts[i].symbol))
 				break;
 		if(i == nlayouts)
 			return;