From a8d171ec40f0e5ef5154eccf66731703371247c4 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Mon, 21 Apr 2003 04:02:58 +0000 Subject: [PATCH] replace a warped wheel with a strdup wheel ;) --- libs/util/plugin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/util/plugin.c b/libs/util/plugin.c index b06b84c66..7231605ae 100644 --- a/libs/util/plugin.c +++ b/libs/util/plugin.c @@ -319,7 +319,7 @@ PI_LoadPlugin (const char *type, const char *name) // add the plugin to the loaded_plugins hashtable lp = malloc (sizeof (loaded_plugin_t)); - lp->name = strcpy (malloc (strlen (plugin_name)), plugin_name); + lp->name = strdup (plugin_name); lp->plugin = plugin; Hash_Add (loaded_plugins, lp);