1
0
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:
Bram Matthys
2019-09-14 17:15:15 +02:00
parent 950fc5001e
commit a75d10d3e4
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -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';
}
}
+1 -1
View File
@@ -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;