From 867652c484176909c61c74f59ba240039c8b9a1b Mon Sep 17 00:00:00 2001 From: mk Date: Mon, 16 Jun 2008 19:09:48 +0000 Subject: 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 --- conf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'conf.c') 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 -- cgit 1.4.1