Lists_MakeMask: Don't destroy source buffer

This commit is contained in:
Alexander Barton 2014-08-08 13:50:48 +02:00
parent 01c3552140
commit 896d45471a
1 changed files with 1 additions and 0 deletions

View File

@ -285,6 +285,7 @@ Lists_MakeMask(const char *Pattern, char *mask, size_t len)
strlcpy(mask, Pattern, len - 5);
strlcat(mask, "!*@", len);
strlcat(mask, at, len);
at--; *at = '@';
} else {
/* All parts (nick, user and domain name) are given */
strlcpy(mask, Pattern, len);