forked from github/server
strdup vergessen
This commit is contained in:
parent
e3bbb74cb8
commit
9d0550da35
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue