1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-09 18:53:13 +02:00

fix silly warning. was safe, parv[1] can never exceed BUFSIZE (512), duh.

This commit is contained in:
Bram Matthys
2015-07-25 19:12:29 +02:00
parent b1a1c51f4e
commit c480ee5b91
+1 -1
View File
@@ -105,7 +105,7 @@ DLLFUNC int m_whois(aClient *cptr, aClient *sptr, int parc, char *parv[])
parv[1] = parv[2];
}
strcpy(querybuf, parv[1]);
strlcpy(querybuf, parv[1], sizeof(querybuf));
for (tmp = canonize(parv[1]); (nick = strtoken(&p, tmp, ",")); tmp = NULL)
{