summaryrefslogtreecommitdiff
path: root/mail/spamguard/files/patch-hash.c
blob: c55f85f37cda3467bb2dae647c02a32edd369ff8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- hash.c.orig	2007-05-10 21:18:39 UTC
+++ hash.c
@@ -141,7 +141,7 @@ hash_lookup(const char *target, unsigned int h)
         bp = bucket_arr[h];
 
         while (bp != NULL) {
-                if (! strncmp(bp->subject, target, sizeof(target)))
+                if (! strncmp(bp->subject, target, sizeof(bp->subject)))
                         return bp;
                 bp = bp->next;
         }
@@ -156,7 +156,7 @@ hash_lookup_IP(const char *target, unsigned int h)
         ip = IP_bucket_arr[h];
 
         while (ip != NULL) {
-                if (! strncmp(ip->IP, target, sizeof(target)))
+                if (! strncmp(ip->IP, target, sizeof(ip->IP)))
                         return 1;
                 ip = ip->next;
         }