Module: ngircd.git Branch: master Commit: 896d45471aa4324d6c86cfc5613feab760151c70 URL: http://ngircd.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git&a=commit;h=896d4...
Author: Alexander Barton alex@barton.de Date: Fri Aug 8 13:50:48 2014 +0200
Lists_MakeMask: Don't destroy source buffer
---
src/ngircd/lists.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/src/ngircd/lists.c b/src/ngircd/lists.c index 563dfa4..022e305 100644 --- 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);
ngircd-commits@lists.barton.de