1
0
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:
Bram Matthys
2019-09-14 16:53:15 +02:00
parent de87b439b7
commit 9fc1e758ab
54 changed files with 164 additions and 205 deletions
+1 -1
View File
@@ -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: