summary refs log tree commit diff
path: root/conf.c
diff options
context:
space:
mode:
authormk <mk>2008-06-16 19:09:48 +0000
committermk <mk>2008-06-16 19:09:48 +0000
commit867652c484176909c61c74f59ba240039c8b9a1b (patch)
tree467b3386766f07163a74f7faa52ece07077c36c8 /conf.c
parent07cd0b1ac55f819f42b2936339843bb85e7630bb (diff)
downloadcwm-867652c484176909c61c74f59ba240039c8b9a1b.tar.gz
cwm-867652c484176909c61c74f59ba240039c8b9a1b.tar.xz
cwm-867652c484176909c61c74f59ba240039c8b9a1b.zip
Make this not crash when compiled with -g.
Found by myself, analysis by kurt@, fix by me with input from otto.

``Just get some fix in...'' deraadt
Diffstat (limited to 'conf.c')
-rw-r--r--conf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/conf.c b/conf.c
index 2f65efa..f05390c 100644
--- a/conf.c
+++ b/conf.c
@@ -171,7 +171,7 @@ conf_init(struct conf *c)
 	strlcpy(c->termpath, "xterm", sizeof(c->termpath));
 	strlcpy(c->lockpath, "xlock", sizeof(c->lockpath));
 
-	c->DefaultFontName = DEFAULTFONTNAME;
+	c->DefaultFontName = xstrdup(DEFAULTFONTNAME);
 }
 
 void