Use MALLOC for load_text addition

This commit is contained in:
Kp 2013-09-29 20:36:24 +00:00
parent ae8a70ac61
commit 3d3116d09f

View file

@ -325,7 +325,7 @@ void load_text()
case IDX_TEXT_OVERWRITTEN:
{
static const char extra[] = "\n<Ctrl-C> converts format\nIntel <-> PowerPC";
str = d_malloc(strlen(ts) + sizeof(extra));
MALLOC(str, char, strlen(ts) + sizeof(extra));
if (!str)
break;
strcpy(str, Text_string[i]);