diff options
author | mk | 2008-06-16 19:09:48 +0000 |
---|---|---|
committer | mk | 2008-06-16 19:09:48 +0000 |
commit | 92d3e512e375f9f48f30a7f201f083a700cae7c1 (patch) | |
tree | 9107874e6c00dae8c489275dddc3fe19464695ca /conf.c | |
parent | 95f0da676903ac1975beaa3567cb8c5ba28660e5 (diff) | |
download | cwm-92d3e512e375f9f48f30a7f201f083a700cae7c1.tar.gz |
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 '')
-rw-r--r-- | conf.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -15,7 +15,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $Id: conf.c,v 1.40 2008/06/15 02:47:46 oga Exp $ + * $Id: conf.c,v 1.41 2008/06/16 19:09:48 mk Exp $ */ #include "headers.h" @@ -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 |