mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-04 00:43:13 +02:00
Mass change of dst = strdup(str) to safe_strdup(dst,str) but with a manual
audit since 'dst' must now be initialized memory. There's still a raw_strdup() if you insist. This is step 2 of X of memory allocation changes
This commit is contained in:
+1
-1
@@ -71,7 +71,7 @@ ModDataInfo *ModDataAdd(Module *module, ModDataInfo req)
|
||||
|
||||
new_struct = 1;
|
||||
m = safe_alloc(sizeof(ModDataInfo));
|
||||
m->name = strdup(req.name);
|
||||
safe_strdup(m->name, req.name);
|
||||
m->slot = slotav;
|
||||
m->type = req.type;
|
||||
moddataadd_isok:
|
||||
|
||||
Reference in New Issue
Block a user