diff options
author | Internet Software Consortium, Inc <@isc.org> | 2014-02-11 09:00:42 -0700 |
---|---|---|
committer | Internet Software Consortium, Inc <@isc.org> | 2014-02-11 09:00:42 -0700 |
commit | 8af21b710f34092dcd08abdc13e7971553b616d2 (patch) | |
tree | f88f42a2ea6576f512958360ee049636e18046b0 /lib/isc/hex.c | |
parent | 892b23e1710e6770b12c3aa952eb2cdc9ab4bc1b (diff) | |
download | bind9-8af21b710f34092dcd08abdc13e7971553b616d2.tar.gz |
9.9.5rc1
Diffstat (limited to 'lib/isc/hex.c')
-rw-r--r-- | lib/isc/hex.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/isc/hex.c b/lib/isc/hex.c index 60addf5c..00903c73 100644 --- a/lib/isc/hex.c +++ b/lib/isc/hex.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2004, 2005, 2007, 2008, 2013 Internet Systems Consortium, Inc. ("ISC") + * Copyright (C) 2004, 2005, 2007, 2008, 2013, 2014 Internet Systems Consortium, Inc. ("ISC") * Copyright (C) 2000-2003 Internet Software Consortium. * * Permission to use, copy, modify, and/or distribute this software for any @@ -183,7 +183,7 @@ str_totext(const char *source, isc_buffer_t *target) { if (l > region.length) return (ISC_R_NOSPACE); - memcpy(region.base, source, l); + memmove(region.base, source, l); isc_buffer_add(target, l); return (ISC_R_SUCCESS); } @@ -195,7 +195,7 @@ mem_tobuffer(isc_buffer_t *target, void *base, unsigned int length) { isc_buffer_availableregion(target, &tr); if (length > tr.length) return (ISC_R_NOSPACE); - memcpy(tr.base, base, length); + memmove(tr.base, base, length); isc_buffer_add(target, length); return (ISC_R_SUCCESS); } |