From 2e211211a76782b6084194a5ced94c0795460047 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Sat, 21 Feb 2015 16:12:14 -0500 Subject: Use FLEXIBLE_ARRAY_MEMBER in a number of other places. I think we're about done with this... --- src/backend/libpq/auth.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/backend/libpq/auth.c') diff --git a/src/backend/libpq/auth.c b/src/backend/libpq/auth.c index 346f8080494..28b050af0e2 100644 --- a/src/backend/libpq/auth.c +++ b/src/backend/libpq/auth.c @@ -2172,7 +2172,7 @@ typedef struct { uint8 attribute; uint8 length; - uint8 data[1]; + uint8 data[FLEXIBLE_ARRAY_MEMBER]; } radius_attribute; typedef struct @@ -2220,7 +2220,6 @@ radius_add_attribute(radius_packet *packet, uint8 type, const unsigned char *dat "Adding attribute code %d with length %d to radius packet would create oversize packet, ignoring", type, len); return; - } attr = (radius_attribute *) ((unsigned char *) packet + packet->length); -- cgit v1.2.3