strdup vergessen

This commit is contained in:
Enno Rehling 2002-01-28 02:23:57 +00:00
parent e3bbb74cb8
commit 9d0550da35
1 changed files with 1 additions and 1 deletions

View File

@ -2103,7 +2103,7 @@ display_item(faction *f, unit *u, const item_type * itype)
fclose(fp);
name = buf;
}
ADDMSG(&f->msgs, msg_message("displayitem", "item description", itype->rtype, name));
ADDMSG(&f->msgs, msg_message("displayitem", "item description", itype->rtype, strdup(name)));
return true;
}