# HG changeset patch # User Anselm R. Garbe # Date 1187802395 -7200 # Node ID 98750b173cd517a944606b17c3dc509f7e5e96fb # Parent c39d60829f67cefaeef94928463145e806ecef5c setlayout should perform strcmp's if arg != NULL, because Layout is local to screen.o diff -r c39d60829f67 -r 98750b173cd5 screen.c --- 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 #include #include +#include #include /* 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;