From 49d8fa1058aaf23c29e074b2314492ae40d2f557 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Tue, 21 Feb 2017 12:05:07 +0000 Subject: Types change: big pass on libstddjb and libunixonacid libdatastruct still missing, library still not functional --- src/libbiguint/bu_fmt.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/libbiguint/bu_fmt.c') diff --git a/src/libbiguint/bu_fmt.c b/src/libbiguint/bu_fmt.c index 8e5dda1..4c3e7e7 100644 --- a/src/libbiguint/bu_fmt.c +++ b/src/libbiguint/bu_fmt.c @@ -1,9 +1,8 @@ /* ISC license. */ -#include #include +#include #include -#include #include size_t bu_fmt (char *s, uint32_t const *x, unsigned int n) @@ -13,8 +12,8 @@ size_t bu_fmt (char *s, uint32_t const *x, unsigned int n) { char fmt[8] ; size_t i = uint32_xfmt(fmt, x[n]) ; - byte_copy(s+len, 8-i, "00000000") ; - byte_copy(s+len+8-i, i, fmt) ; + memcpy(s+len, "00000000", 8-i) ; + memcpy(s+len+8-i, fmt, i) ; len += 8 ; } return len ; -- cgit v1.2.3