From: Denys Vlasenko Date: Thu, 28 Oct 2010 22:37:56 +0000 (+0200) Subject: dnsd: fix 64-bit bug 2539. X-Git-Tag: 1_18_0~52 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=dc8ef353fd8ae0641a53c2507138155dcd5f76e7;p=oweals%2Fbusybox.git dnsd: fix 64-bit bug 2539. Signed-off-by: Denys Vlasenko --- diff --git a/networking/dnsd.c b/networking/dnsd.c index 92d4867aa..8ed31cea2 100644 --- a/networking/dnsd.c +++ b/networking/dnsd.c @@ -388,7 +388,7 @@ static int process_packet(struct dns_entry *conf_data, query_len = strlen(query_string) + 1; /* may be unaligned! */ unaligned_type_class = (void *)(query_string + query_len); - query_len += sizeof(unaligned_type_class); + query_len += sizeof(*unaligned_type_class); /* where to append answer block */ answb = (void *)(unaligned_type_class + 1);