mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-10 01:03:12 +02:00
More code cleanups to get rid of useless casts and other useless
structures such as: - lp->value.cp = (char *)MyMalloc(strlen(mask) + 1); - (void)strcpy(lp->value.cp, mask); + lp->value.cp = strdup(mask);
This commit is contained in:
+1
-1
@@ -127,7 +127,7 @@ void flag_add(char ch)
|
||||
if (extraflags)
|
||||
{
|
||||
char tmp[2] = { ch, 0 };
|
||||
newextra = (char *)MyMalloc(strlen(extraflags) + 2);
|
||||
newextra = MyMallocEx(strlen(extraflags) + 2);
|
||||
strcpy(newextra, extraflags);
|
||||
strcat(newextra, tmp);
|
||||
MyFree(extraflags);
|
||||
|
||||
Reference in New Issue
Block a user