- dnsbl.c: use 'sizeof'
authormichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>
Fri, 2 Jan 2015 21:36:52 +0000 (21:36 +0000)
committermichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>
Fri, 2 Jan 2015 21:36:52 +0000 (21:36 +0000)
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/hopm/branches/1.0.x@5286 82007160-df01-0410-b94d-b575c5fd34c7

src/dnsbl.c

index 9bad3c1d73824707797e9146e9003ecf5d781762..2de76b5b4541fdae9c44f091f9066798e53506f4 100644 (file)
@@ -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);