Module: ngircd.git
Branch: master
Commit: 51e5ba94b3f28f84aadc140f0c340d03d2a11d6c
URL: http://ngircd.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git&a=commit;h=51e5ba94…
Author: Federico G. Schwindt <fgsch(a)lodoss.net>
Date: Sat Apr 20 10:53:16 2013 +0100
Ensure there is enough space for the mask
As pointed by Alex while strl{cat,cpy} take the full length
we need to leave space to ensure a proper mask is always created
so revert the removal of - N from my last change.
---
src/ngircd/lists.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/ngircd/lists.c b/src/ngircd/lists.c
index d98dc6c..b0accd4 100644
--- a/src/ngircd/lists.c
+++ b/src/ngircd/lists.c
@@ -279,16 +279,16 @@ Lists_MakeMask(const char *Pattern, char *mask, size_t len)
if (!at && !excl) {
/* Neither "!" nor "@" found: use string as nickname */
- strlcpy(mask, Pattern, len);
+ strlcpy(mask, Pattern, len - 5);
strlcat(mask, "!*@*", len);
} else if (!at && excl) {
/* Domain part is missing */
- strlcpy(mask, Pattern, len);
+ strlcpy(mask, Pattern, len - 3);
strlcat(mask, "@*", len);
} else if (at && !excl) {
/* User name is missing */
*at = '\0'; at++;
- strlcpy(mask, Pattern, len);
+ strlcpy(mask, Pattern, len - 5);
strlcat(mask, "!*@", len);
strlcat(mask, at, len);
} else {
Module: ngircd.git
Branch: master
Commit: b4d0a4038398c23d015bd3faf6247a0dd91016a9
URL: http://ngircd.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git&a=commit;h=b4d0a403…
Author: Federico G. Schwindt <fgsch(a)lodoss.net>
Date: Fri Apr 19 23:51:42 2013 +0100
Better description for Lists_CheckReason()
---
src/ngircd/lists.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/src/ngircd/lists.c b/src/ngircd/lists.c
index 9ebd890..d98dc6c 100644
--- a/src/ngircd/lists.c
+++ b/src/ngircd/lists.c
@@ -311,13 +311,12 @@ Lists_Check(struct list_head *h, CLIENT *Client)
}
/**
- * Check if a client is listed in a list and store the reason if a buffer
- * is provided.
+ * Check if a client is listed in a list and store the reason.
*
* @param h List head.
* @param Client Client to check.
- * @param reason Result buffer to store the reason.
- * @param len Size of the buffer.
+ * @param reason Buffer to store the reason.
+ * @param len Size of the buffer if reason should be saved.
* @return true if client is listed, false if not.
*/
bool
Module: ngircd.git
Branch: master
Commit: 528c8fc244cb689d83d10203330718ba6b593458
URL: http://ngircd.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git&a=commit;h=528c8fc2…
Author: Alexander Barton <alex(a)barton.de>
Date: Mon Apr 1 17:23:49 2013 +0200
Update doc/Platforms.txt a little bit ...
---
doc/Platforms.txt | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/doc/Platforms.txt b/doc/Platforms.txt
index 9ff3b6c..e9c19a4 100644
--- a/doc/Platforms.txt
+++ b/doc/Platforms.txt
@@ -2,7 +2,7 @@
ngIRCd - Next Generation IRC Server
http://ngircd.barton.de/
- (c)2001-2012 Alexander Barton and Contributors.
+ (c)2001-2013 Alexander Barton and Contributors.
ngIRCd is free software and published under the
terms of the GNU General Public License.
@@ -26,7 +26,7 @@ list can be updated. Thanks for your help!
Platform Compiler ngIRCd Date Tester C M T R See
--------------------------- ------------ ---------- -------- ------ - - - - ---
alpha/unknown/netbsd3.0 gcc 3.3.3 CVSHEAD 06-05-07 fw Y Y Y Y (3)
-armv6l/unkn./linux-gnueabi gcc 4.4.5 19.1 12-06-04 goetz Y Y Y Y (5)
+armv6l/unkn./linux-gnueabi gcc 4.7.2 20.2 13-03-08 goetz Y Y Y Y (5)
armv7l/unkn./linux-gnueabi gcc 4.4.3 19.1 12-04-29 goetz Y Y Y Y (5)
hppa/unknown/openbsd3.5 gcc 2.95.3 CVSHEAD 04-05-25 alex Y Y Y Y
hppa1.1/unknown/linux-gnu gcc 3.3.3 0.8.0 04-05-30 alex Y Y Y Y
@@ -73,10 +73,10 @@ powerpc/unknown/openbsd3.6 gcc 2.95.3 0.10.0 06-10-08 alex Y Y N Y
sparc/sun/solaris2.6 gcc 2.95.3 0.7.x-CVS 03-04-22 alex Y Y Y Y
sparc/sun/solaris2.7 gcc 3.3 0.8.0 04-05-30 alex Y Y Y Y
sparc/unkn./netbsdelf1.6.1 gcc 2.95.3 0.8.0 04-05-30 alex Y Y Y Y
-x86_64/apple/darwin12.2.0 gcc 4.2.1 20~rc1 12-11-13 alex Y Y Y Y (3)
+x86_64/apple/darwin12.3.0 gcc 4.2.1 20.2 13-04-01 alex Y Y Y Y (3)
x86_64/unknown/freebsd8.1 gcc 4.2.1 20~rc1 12-11-13 alex Y Y Y Y (3)
x86_64/unkn./freebsd8.1-gnu gcc 4.4.5 19 12-02-26 alex Y Y Y Y (3)
-x86_64/unknown/linux-gnu gcc 4.4.5 20~rc1 12-02-26 alex Y Y Y Y (1)
+x86_64/unknown/linux-gnu gcc 4.4.5 20.2 13-04-01 alex Y Y Y Y (1)
x86_64/unknown/openbsd4.7 gcc 3.3.5 20~rc1 12-02-26 alex Y Y Y Y (3)
x86_64/unknown/openbsd4.8 gcc 4.2.1 20~rc1 12-11-13 alex Y Y Y Y (3)