ngircd

Free, portable and lightweight Internet Relay Chat server http://ngircd.barton.de/
Log | Files | Refs | README | LICENSE

commit 896d45471aa4324d6c86cfc5613feab760151c70
parent 01c3552140f710fd1efc5b1037e99500c2a292d7
Author: Alexander Barton <alex@barton.de>
Date:   Fri,  8 Aug 2014 13:50:48 +0200

Lists_MakeMask: Don't destroy source buffer

Diffstat:
Msrc/ngircd/lists.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/src/ngircd/lists.c b/src/ngircd/lists.c @@ -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);