From 6a9b62afada27d41dd7aa0289f4e966d7f6116c1 Mon Sep 17 00:00:00 2001 From: Claudio Jeker Date: Sat, 19 Apr 2014 18:31:34 +0000 Subject: COnveret the bcopy() to memcpy() --- usr.sbin/iscsid/log.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.sbin/iscsid/log.c') diff --git a/usr.sbin/iscsid/log.c b/usr.sbin/iscsid/log.c index df06d281090..3ae75977e14 100644 --- a/usr.sbin/iscsid/log.c +++ b/usr.sbin/iscsid/log.c @@ -1,4 +1,4 @@ -/* $OpenBSD: log.c,v 1.5 2011/08/20 19:03:39 sthen Exp $ */ +/* $OpenBSD: log.c,v 1.6 2014/04/19 18:31:33 claudio Exp $ */ /* * Copyright (c) 2009 Claudio Jeker @@ -178,7 +178,7 @@ log_hexdump(void *buf, size_t len) for (i = 0; i < len; i += l) { fprintf(stderr, "%4zi:", i); l = sizeof(b) < len - i ? sizeof(b) : len - i; - bcopy((char *)buf + i, b, l); + memcpy(b, (char *)buf + i, l); for (j = 0; j < sizeof(b); j++) { if (j % 2 == 0) -- cgit v1.2.3