diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2014-04-19 18:31:34 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2014-04-19 18:31:34 +0000 |
commit | 6a9b62afada27d41dd7aa0289f4e966d7f6116c1 (patch) | |
tree | 3d997f381347fa19049392f5e0d72c73b3468050 /usr.sbin/iscsid/log.c | |
parent | be8deedb177d5fda86286a4149d2d022caa911ff (diff) |
COnveret the bcopy() to memcpy()
Diffstat (limited to 'usr.sbin/iscsid/log.c')
-rw-r--r-- | usr.sbin/iscsid/log.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 <claudio@openbsd.org> @@ -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) |