summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/core')
-rw-r--r--src/core/ns_forbid.c2
-rw-r--r--src/core/ns_register.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/core/ns_forbid.c b/src/core/ns_forbid.c
index cc3ed5b90..7783024fb 100644
--- a/src/core/ns_forbid.c
+++ b/src/core/ns_forbid.c
@@ -125,7 +125,7 @@ NickAlias *makenick(const char *nick)
NickCore *nc;
/* First make the core */
- nc = (NickCore *)scalloc(1, sizeof(NickCore));
+ nc = new NickCore();
nc->display = sstrdup(nick);
slist_init(&nc->aliases);
insert_core(nc);
diff --git a/src/core/ns_register.c b/src/core/ns_register.c
index 0a0e073ac..780101b98 100644
--- a/src/core/ns_register.c
+++ b/src/core/ns_register.c
@@ -405,7 +405,7 @@ NickAlias *makenick(const char *nick)
NickCore *nc;
/* First make the core */
- nc = (NickCore *)scalloc(1, sizeof(NickCore));
+ nc = new NickCore();
nc->display = sstrdup(nick);
slist_init(&nc->aliases);
insert_core(nc);