From 9d0550da35a0eff3750a9977013d644ab56d4955 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Mon, 28 Jan 2002 02:23:57 +0000 Subject: [PATCH] strdup vergessen --- src/common/gamecode/laws.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/gamecode/laws.c b/src/common/gamecode/laws.c index 6d83d31fa..cc2d9040a 100644 --- a/src/common/gamecode/laws.c +++ b/src/common/gamecode/laws.c @@ -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; }