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) {
return 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, "*");