From: Pasi Kallinen Date: Fri, 30 Oct 2015 21:27:19 +0000 (+0200) Subject: Use our dupstr instead X-Git-Tag: NetHack-3.6.0_RC01~118 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3ff3f6d2defe32eae7ac9cdf81688600e0c1ac39;p=nethack Use our dupstr instead --- diff --git a/src/options.c b/src/options.c index 9e949de54..07f124a56 100644 --- a/src/options.c +++ b/src/options.c @@ -4338,9 +4338,7 @@ boolean setinitial, setfromfile; clear_symsetentry(which_set, TRUE); /* transfer only the name of the symbol set */ - symset[which_set].name = - (char *) alloc(strlen(sl->name) + 1); - Strcpy(symset[which_set].name, sl->name); + symset[which_set].name = dupstr(sl->name); ready_to_switch = TRUE; break; }