Fix OOB read in m_whox.

Strange order for a compare, first the 2nd byte, then the 1st byte ;)
Anyway, this issue can only be triggered since rc1, no big issue.
This commit is contained in:
Bram Matthys 2019-02-06 19:31:10 +01:00
parent e443182573
commit 9c0f1f3505
No known key found for this signature in database
GPG key ID: BF8116B163EAAE98

View file

@ -359,7 +359,7 @@ CMD_FUNC(m_whox)
* request a full list. I presume its because of too many typos
* with "/who" ;) --fl
*/
if ((*(mask + 1) == '\0') && (*mask == '0'))
if (!strcmp(mask, "0"))
who_global(sptr, NULL, 0, &fmt);
else
who_global(sptr, mask, operspy, &fmt);