Date: Fri, 10 Mar 2023 17:19:19 GMT From: Alexey Dokuchaev <danfe@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: b30205641465 - main - security/pks: use correct format specifier for printing sizeof(). Message-ID: <202303101719.32AHJJUN068541@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by danfe: URL: https://cgit.FreeBSD.org/ports/commit/?id=b30205641465d18700659c8283c388731be2050d commit b30205641465d18700659c8283c388731be2050d Author: Alexey Dokuchaev <danfe@FreeBSD.org> AuthorDate: 2023-03-10 17:16:14 +0000 Commit: Alexey Dokuchaev <danfe@FreeBSD.org> CommitDate: 2023-03-10 17:16:14 +0000 security/pks: use correct format specifier for printing sizeof(). --- security/pks/files/patch-kd_search.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/security/pks/files/patch-kd_search.c b/security/pks/files/patch-kd_search.c index e5e70ad79352..a0fb781bf372 100644 --- a/security/pks/files/patch-kd_search.c +++ b/security/pks/files/patch-kd_search.c @@ -1,13 +1,11 @@ ---- ./kd_search.c.orig 2003-08-04 21:57:34.000000000 +0200 -+++ ./kd_search.c 2014-08-15 18:37:29.000000000 +0200 -@@ -1058,8 +1058,8 @@ +--- kd_search.c.orig 2003-08-04 19:57:34 UTC ++++ kd_search.c +@@ -1058,7 +1058,7 @@ word_key_intersect (void *e, void *c) if (we->len > sizeof (word)) { s->err->fatal = 0; - sprintf (s->err->buf, "search word is greater than %d characters", -- sizeof (word)); -+ sprintf (s->err->buf, "search word is greater than %lu characters", -+ (unsigned long)sizeof (word)); ++ sprintf (s->err->buf, "search word is greater than %zu characters", + sizeof (word)); return (0); } -
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202303101719.32AHJJUN068541>