aboutsummaryrefslogtreecommitdiff
path: root/libs/libnet/dns.c
diff options
context:
space:
mode:
authorMarvin Borner2021-04-01 19:39:14 +0200
committerMarvin Borner2021-04-01 19:39:14 +0200
commitafa00abb2b68205bee539d7947130d6b1b1ec6e9 (patch)
tree3a821a75af6c4d4ff1bd4128c4859d77abf87e66 /libs/libnet/dns.c
parent4c168fb34c15a1b8981abef7ccef1542a6fb05ca (diff)
Hardened entire system
By using the nonnull attribute and replace buffer-overflow-prone functions like strcpy, strcat and sprintf by strlcpy, strlcat and snprintf.
Diffstat (limited to 'libs/libnet/dns.c')
-rw-r--r--libs/libnet/dns.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/libnet/dns.c b/libs/libnet/dns.c
index f20f33a..e179bd6 100644
--- a/libs/libnet/dns.c
+++ b/libs/libnet/dns.c
@@ -20,7 +20,7 @@ struct dns_packet {
u16 authorities;
u16 additional;
u8 data[];
-} __attribute__((packed));
+} PACKED;
static u32 part_count(const char *name)
{