--HG--
branch : shroudtrusts
if (strchr(mask, ' ') != NULL)
return NULL;
if (strchr(mask, ' ') != NULL)
return NULL;
- /* Make sure it's not too long */
- if (strlen(mask) > NICKLEN + USERLEN + HOSTLEN + 2)
- return NULL;
-
gl = newgline();
if (!gl) {
gl = newgline();
if (!gl) {
+ /* Make sure it's not too long */
+ if (strlen(mask) > NICKLEN + USERLEN + HOSTLEN + 2)
+ return NULL;
+
strncpy(dupmask, mask, sizeof(dupmask));
canon_userhost(dupmask, &nick, &user, &host, "*");
strncpy(dupmask, mask, sizeof(dupmask));
canon_userhost(dupmask, &nick, &user, &host, "*");