From 989b3b2d6068ce5b525479b7754977baf6364a7d Mon Sep 17 00:00:00 2001 From: Erwin Lansing Date: Mon, 24 Feb 2014 13:58:58 +0000 Subject: Vendor import of BIND 9.9.5 Approved by: delphij (mentor, implicit) Sponsored by: DK Hostmaster A/S --- lib/export/samples/sample-request.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/export/samples/sample-request.c') diff --git a/lib/export/samples/sample-request.c b/lib/export/samples/sample-request.c index 07baf39507856..8d36a2cebde44 100644 --- a/lib/export/samples/sample-request.c +++ b/lib/export/samples/sample-request.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2009, 2012, 2013 Internet Systems Consortium, Inc. ("ISC") + * Copyright (C) 2009, 2012-2014 Internet Systems Consortium, Inc. ("ISC") * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -221,7 +221,7 @@ main(int argc, char *argv[]) { exit(1); } INSIST(res->ai_addrlen <= sizeof(sa.type)); - memcpy(&sa.type, res->ai_addr, res->ai_addrlen); + memmove(&sa.type, res->ai_addr, res->ai_addrlen); freeaddrinfo(res); sa.length = res->ai_addrlen; ISC_LINK_INIT(&sa, link); -- cgit v1.2.3