From: mikeb Date: Fri, 5 Jan 2018 19:05:09 +0000 (+0000) Subject: Sync with the code in libc X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=f620fa076e23562ed1d435e0a6d20a2ba857f9de;p=openbsd Sync with the code in libc OK millert; original commit message by tedu@: memcpy from the right place. at this point, the used variable is not relevant. from Mark Karpilovskij. ok millert --- diff --git a/sys/crypto/siphash.c b/sys/crypto/siphash.c index 1b3df7e3f1d..33bb7b46325 100644 --- a/sys/crypto/siphash.c +++ b/sys/crypto/siphash.c @@ -1,4 +1,4 @@ -/* $OpenBSD: siphash.c,v 1.4 2017/04/12 18:35:50 florian Exp $ */ +/* $OpenBSD: siphash.c,v 1.5 2018/01/05 19:05:09 mikeb Exp $ */ /*- * Copyright (c) 2013 Andre Oppermann @@ -102,7 +102,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); } void