From 8ea1727b882974ff050ce2229ce39fc3963d6296 Mon Sep 17 00:00:00 2001 From: michael Date: Fri, 2 Jan 2015 21:36:52 +0000 Subject: [PATCH] - dnsbl.c: use 'sizeof' git-svn-id: svn://svn.ircd-hybrid.org/svnroot/hopm/branches/1.0.x@5286 82007160-df01-0410-b94d-b575c5fd34c7 --- src/dnsbl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.30.2