mirror of
https://github.com/matrix-construct/construct
synced 2024-11-29 18:22:50 +01:00
Remove LOCAL_COPY (and thus alloca) usage from /who.
This commit is contained in:
parent
02eca3f19a
commit
04d7768492
1 changed files with 3 additions and 1 deletions
|
@ -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]);
|
||||
strlcpy(maskcopy, parv[1], sizeof maskcopy);
|
||||
mask = maskcopy;
|
||||
|
||||
collapse(mask);
|
||||
|
||||
|
|
Loading…
Reference in a new issue