From a2f64c2462282bb3cf1ad24044c97bb7d6b85e0d Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Sat, 5 Aug 2017 19:26:25 +0200 Subject: Replace bcopy with memcpy or memmove as appropriate. * boot/boot.c: Replace bcopy with memcpy or memmove as appropriate. * exec/hashexec.c: Likewise. * libps/proclist.c: Likewise, but also fix the amount of data copied. * libps/procstat.c: Likewise. * libps/spec.c: Likewise. * libshouldbeinlibc/cacheq.c: Likewise. * libshouldbeinlibc/idvec.c: Likewise. * libshouldbeinlibc/timefmt.c: Likewise. --- libshouldbeinlibc/timefmt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libshouldbeinlibc/timefmt.c') diff --git a/libshouldbeinlibc/timefmt.c b/libshouldbeinlibc/timefmt.c index cef72e02..2bbeffcb 100644 --- a/libshouldbeinlibc/timefmt.c +++ b/libshouldbeinlibc/timefmt.c @@ -296,7 +296,7 @@ fmt_past_time (struct timeval *tv, struct timeval *now, if (diff < 0) diff = -diff; /* XXX */ - bcopy (localtime ((time_t *) &tv->tv_sec), &tm, sizeof tm); + memcpy (&tm, localtime ((time_t *) &tv->tv_sec), sizeof tm); if (width <= 0 || width >= buf_len) width = buf_len - 1; -- cgit v1.2.3