mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-08 07:23:13 +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';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user