mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 04:42:32 +00:00
replace a warped wheel with a strdup wheel ;)
This commit is contained in:
parent
eac5b83ea5
commit
a8d171ec40
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue