From 8be3f3ec9eec07ddf1622a04874e82730f108a26 Mon Sep 17 00:00:00 2001 From: "Anselm R. Garbe" Date: Wed, 22 Aug 2007 19:06:35 +0200 Subject: setlayout should perform strcmp's if arg != NULL, because Layout is local to screen.o --- screen.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/screen.c b/screen.c index b534766c..8d049116 100644 --- a/screen.c +++ b/screen.c @@ -3,6 +3,7 @@ #include #include #include +#include #include /* static */ @@ -245,7 +246,7 @@ setlayout(const char *arg) { } else { for(i = 0; i < nlayouts; i++) - if(arg == layouts[i].symbol) + if(!strcmp(arg, layouts[i].symbol)) break; if(i == nlayouts) return; -- cgit v1.2.3