about summary refs log tree commit diff stats
path: root/screen.c
diff options
context:
space:
mode:
Diffstat (limited to 'screen.c')
-rw-r--r--screen.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/screen.c b/screen.c
index b534766..8d04911 100644
--- a/screen.c
+++ b/screen.c
@@ -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 @@ 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;
1999-12-01 03:38:43 -0500 committer Thomas E. Dickey <dickey@invisible-island.net> 1999-12-01 03:38:43 -0500 snapshot of project "lynx", label v2-8-3dev_16' href='/ingrix/lynx-snapshots/commit/mkdirs.sh?id=4525eb4b32fdf2124e246285af59a1e14ecbf551'>4525eb4b ^
1876fe93 ^
741e82fc ^












4525eb4b ^
b63d287c ^








1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51