Use our dupstr instead

This commit is contained in:
Pasi Kallinen
2015-10-30 23:27:19 +02:00
parent 4aac554b66
commit 3ff3f6d2de
+1 -3
View File
@@ -4338,9 +4338,7 @@ boolean setinitial, setfromfile;
clear_symsetentry(which_set, TRUE); clear_symsetentry(which_set, TRUE);
/* transfer only the name of the symbol set */ /* transfer only the name of the symbol set */
symset[which_set].name = symset[which_set].name = dupstr(sl->name);
(char *) alloc(strlen(sl->name) + 1);
Strcpy(symset[which_set].name, sl->name);
ready_to_switch = TRUE; ready_to_switch = TRUE;
break; break;
} }