From: michael Date: Fri, 2 Jan 2015 21:36:52 +0000 (+0000) Subject: - dnsbl.c: use 'sizeof' X-Git-Tag: 1.0.0~6 X-Git-Url: http://git.serene-ircd.net/?a=commitdiff_plain;h=8ea1727b882974ff050ce2229ce39fc3963d6296;p=hopm.git - dnsbl.c: use 'sizeof' git-svn-id: svn://svn.ircd-hybrid.org/svnroot/hopm/branches/1.0.x@5286 82007160-df01-0410-b94d-b575c5fd34c7 --- diff --git a/src/dnsbl.c b/src/dnsbl.c index 9bad3c1..2de76b5 100644 --- a/src/dnsbl.c +++ b/src/dnsbl.c @@ -74,9 +74,9 @@ dnsbl_add(struct scan_struct *ss) struct BlacklistConf *bl = p->data; #ifdef WORDS_BIGENDIAN - snprintf(lookup, 128, "%d.%d.%d.%d.%s", a, b, c, d, bl->name); + snprintf(lookup, sizeof(lookup), "%d.%d.%d.%d.%s", a, b, c, d, bl->name); #else - snprintf(lookup, 128, "%d.%d.%d.%d.%s", d, c, b, a, bl->name); + snprintf(lookup, sizeof(lookup), "%d.%d.%d.%d.%s", d, c, b, a, bl->name); #endif ds = xcalloc(sizeof *ds);