summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authortedu <tedu@openbsd.org>2017-12-25 02:11:19 +0000
committertedu <tedu@openbsd.org>2017-12-25 02:11:19 +0000
commitfc89b46655c7c36f332a6f00e19badac7da072e1 (patch)
treea8902be3cf9c610dc1f4e5a091db79da7cbd716b /lib/libc
parentTedu files that got removed in LLVM 5.0.1. (diff)
downloadwireguard-openbsd-fc89b46655c7c36f332a6f00e19badac7da072e1.tar.xz
wireguard-openbsd-fc89b46655c7c36f332a6f00e19badac7da072e1.zip
memcpy from the right place. at this point, the used variable is not
relevant. from Mark Karpilovskij. ok millert
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/hash/siphash.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/hash/siphash.c b/lib/libc/hash/siphash.c
index 845c8b6f5a9..621d1b5b7a8 100644
--- a/lib/libc/hash/siphash.c
+++ b/lib/libc/hash/siphash.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: siphash.c,v 1.6 2017/04/12 17:41:49 deraadt Exp $ */
+/* $OpenBSD: siphash.c,v 1.7 2017/12/25 02:11:19 tedu Exp $ */
/*-
* Copyright (c) 2013 Andre Oppermann <andre@FreeBSD.org>
@@ -104,7 +104,7 @@ SipHash_Update(SIPHASH_CTX *ctx, int rc, int rf, const void *src, size_t len)
}
if (len > 0)
- memcpy(&ctx->buf[used], ptr, len);
+ memcpy(ctx->buf, ptr, len);
}
DEF_WEAK(SipHash_Update);