From 9d687b0719a1ad72f2e0cacc566e0b550d4cede9 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Sun, 12 Mar 2017 13:32:44 +0000 Subject: Fix a few omissions (and a memchr() argument order bug!) --- src/libs6dns/s6dns_debug_dumpdt_pre_send.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libs6dns/s6dns_debug_dumpdt_pre_send.c') diff --git a/src/libs6dns/s6dns_debug_dumpdt_pre_send.c b/src/libs6dns/s6dns_debug_dumpdt_pre_send.c index 5e1c60a..6d42608 100644 --- a/src/libs6dns/s6dns_debug_dumpdt_pre_send.c +++ b/src/libs6dns/s6dns_debug_dumpdt_pre_send.c @@ -5,7 +5,7 @@ #define _BSD_SOURCE #endif -#include +#include #include #include #include @@ -45,7 +45,7 @@ int s6dns_debug_dumpdt_pre_send (s6dns_engine_t const *dt, void *data) if (!localtmn_from_tain(&l, &dt->localdeadline, 0)) { if (errno != EOVERFLOW) return 0 ; - byte_copy(buf, 10, "\"infinite\"") ; len = 10 ; + memcpy(buf, "\"infinite\"", 10) ; len = 10 ; } else len = localtmn_fmt(buf, &l) ; } -- cgit v1.3.1