From d8b16564cca78061941fbe996c836e73a4c84626 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Philipp=20T=C3=B6lke?= Date: Mon, 18 Apr 2011 14:42:39 +0000 Subject: [PATCH] Fix #1676, take one byte more in data-segment... --- src/vpn/gnunet-service-dns.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vpn/gnunet-service-dns.c b/src/vpn/gnunet-service-dns.c index d7c35d0dd..0dd58027a 100644 --- a/src/vpn/gnunet-service-dns.c +++ b/src/vpn/gnunet-service-dns.c @@ -240,7 +240,7 @@ send_rev_query(void * cls, const struct GNUNET_SCHEDULER_TaskContext *tc) { dque->class = htons(1); /* IN */ char* anname = (char*)(dpkt->data+(query_states[id].namelen)+sizeof(struct dns_query_line)); - memcpy(anname, (char[]){0xc0, 0x0c}, 2); + memcpy(anname, "\xc0\x0c", 2); struct dns_record_line *drec_data = (struct dns_record_line*)(dpkt->data+(query_states[id].namelen)+sizeof(struct dns_query_line)+2); drec_data->type = htons(12); /* AAAA */ @@ -344,7 +344,7 @@ receive_dht(void *cls, dque->class = htons(1); /* IN */ char* anname = (char*)(dpkt->data+(query_states[id].namelen)+sizeof(struct dns_query_line)); - memcpy(anname, (char[]){0xc0, 0x0c}, 2); + memcpy(anname, "\xc0\x0c", 2); struct dns_record_line *drec_data = (struct dns_record_line*)(dpkt->data+(query_states[id].namelen)+sizeof(struct dns_query_line)+2); drec_data->type = htons(28); /* AAAA */ -- 2.25.1