From: Rusty Russell Date: Mon, 3 Jul 2000 10:24:04 +0000 (+0000) Subject: More PPC alignment fixes. X-Git-Tag: v1.2.1~151 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=73ef09b21573ddb17ff75e5fd06fd4b52ec8ea40;p=thirdparty%2Fiptables.git More PPC alignment fixes. --- diff --git a/libiptc/libiptc.c b/libiptc/libiptc.c index b16f000d..4c842651 100644 --- a/libiptc/libiptc.c +++ b/libiptc/libiptc.c @@ -1023,9 +1023,9 @@ match_different(const STRUCT_ENTRY_MATCH *a, if (strcmp(a->u.user.name, b->u.user.name) != 0) return 1; - *maskptr += sizeof(*a); + *maskptr += ALIGN(sizeof(*a)); - for (i = 0; i < a->u.match_size - sizeof(*a); i++) + for (i = 0; i < a->u.match_size - ALIGN(sizeof(*a)); i++) if (((a->data[i] ^ b->data[i]) & (*maskptr)[i]) != 0) return 1; *maskptr += i;