X-Git-Url: https://jfr.im/git/irc/rqf/shadowircd.git/blobdiff_plain/aff2058aa8e9a37ae7ea37bc1f520f1bddc19c73..9a9f3cf8a5f67962cb2c972c98b8f12b1d3141f5:/modules/m_who.c diff --git a/modules/m_who.c b/modules/m_who.c index 2175fcc..f05beca 100644 --- a/modules/m_who.c +++ b/modules/m_who.c @@ -102,6 +102,7 @@ m_who(struct Client *client_p, struct Client *source_p, int parc, const char *pa int operspy = 0; struct who_format fmt; const char *s; + char maskcopy[512]; fmt.fields = 0; fmt.querytype = NULL; @@ -137,7 +138,8 @@ m_who(struct Client *client_p, struct Client *source_p, int parc, const char *pa fmt.querytype = "0"; } - mask = LOCAL_COPY(parv[1]); + rb_strlcpy(maskcopy, parv[1], sizeof maskcopy); + mask = maskcopy; collapse(mask);