git: 536f7d84cd06 - main - newkey: Fix mismatch in array bounds in for adjust().
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 28 Sep 2022 21:06:49 UTC
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=536f7d84cd061bd5667a4d93fed3f41772197c79 commit 536f7d84cd061bd5667a4d93fed3f41772197c79 Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2022-09-28 21:06:16 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2022-09-28 21:06:16 +0000 newkey: Fix mismatch in array bounds in for adjust(). Reviewed by: emaste Reported by: GCC -Warray-parameter Differential Revision: https://reviews.freebsd.org/D36762 --- usr.bin/newkey/generic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/newkey/generic.c b/usr.bin/newkey/generic.c index 368b051155a4..324cb5b604ad 100644 --- a/usr.bin/newkey/generic.c +++ b/usr.bin/newkey/generic.c @@ -52,7 +52,7 @@ __FBSDID("$FreeBSD$"); #include "extern.h" -static void adjust(char[], char *); +static void adjust(char[HEXKEYBYTES + 1], char *); static void getseed(char *, int, unsigned char *); /*