mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-05 21:13:12 +02:00
Some remaining malloc() calls -> safe_alloc()
Unimportant, but this way 100% of those is done. This is step 4 of X of the memory function / caller changes.
This commit is contained in:
+2
-2
@@ -80,9 +80,9 @@ void flag_add(char ch)
|
||||
}
|
||||
else
|
||||
{
|
||||
extraflags = malloc(2);
|
||||
extraflags = safe_alloc(2);
|
||||
extraflags[0] = ch;
|
||||
extraflags[1] = 0;
|
||||
extraflags[1] = '\0';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -256,7 +256,7 @@ CMD_FUNC(cmd_sajoin)
|
||||
{
|
||||
opermode = 0;
|
||||
sajoinmode = 1;
|
||||
mode_args[0] = (char*)malloc(2);
|
||||
mode_args[0] = safe_alloc(2);
|
||||
mode_args[0][0] = mode;
|
||||
mode_args[0][1] = '\0';
|
||||
mode_args[1] = acptr->name;
|
||||
|
||||
Reference in New Issue
Block a user