replace a warped wheel with a strdup wheel ;)

This commit is contained in:
Bill Currie 2003-04-21 04:02:58 +00:00
parent eac5b83ea5
commit a8d171ec40

View file

@ -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);