From a1cb9a9a857babf1ecc8fbb95ce42bafd5b348b7 Mon Sep 17 00:00:00 2001 From: degroote Date: Sat, 22 Sep 2007 23:38:17 +0000 Subject: [PATCH] Fix a stupid bogus bcopy -> memcpy conversion. I will write it 1000 times : when I convert bcopy to memcpy, don't forget to swap first and secund args. --- sys/opencrypto/deflate.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/opencrypto/deflate.c b/sys/opencrypto/deflate.c index 63311982b858..bba5ce796258 100644 --- a/sys/opencrypto/deflate.c +++ b/sys/opencrypto/deflate.c @@ -1,4 +1,4 @@ -/* $NetBSD: deflate.c,v 1.8 2007/05/21 11:35:16 degroote Exp $ */ +/* $NetBSD: deflate.c,v 1.9 2007/09/22 23:38:17 degroote Exp $ */ /* $FreeBSD: src/sys/opencrypto/deflate.c,v 1.1.2.1 2002/11/21 23:34:23 sam Exp $ */ /* $OpenBSD: deflate.c,v 1.3 2001/08/20 02:45:22 hugh Exp $ */ @@ -35,7 +35,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: deflate.c,v 1.8 2007/05/21 11:35:16 degroote Exp $"); +__KERNEL_RCSID(0, "$NetBSD: deflate.c,v 1.9 2007/09/22 23:38:17 degroote Exp $"); #include #include @@ -177,13 +177,13 @@ end: output = *out; for (j = 0; buf[j].flag != 0; j++) { if (count > buf[j].size) { - memcpy(buf[j].out, *out, buf[j].size); + memcpy(*out, buf[j].out, buf[j].size); *out += buf[j].size; free(buf[j].out, M_CRYPTO_DATA); count -= buf[j].size; } else { /* it should be the last buffer */ - memcpy(buf[j].out, *out, count); + memcpy(*out, buf[j].out, count); *out += count; free(buf[j].out, M_CRYPTO_DATA); count = 0;