aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPiotr Kubaj <pkubaj@FreeBSD.org>2024-06-15 15:09:31 +0000
committerPiotr Kubaj <pkubaj@FreeBSD.org>2024-06-16 15:25:19 +0000
commit3c98498fb58e4de076a3862cc459be6ca10e3445 (patch)
tree15c6bc9631cc797f49c35a8804556da2169d4ae3
parent90c6e11540a62583f4ec5c81eece4450bdc84fb6 (diff)
editors/hexcurse: fix build on 14.1
hexcurse.c:237:30: error: 'snprintf' will always be truncated; specified size is 1, but format string expands to at least 2 [-Werror,-Wformat-truncation] 237 | min_address_length = snprintf(buffer, 1, "%jd", (intmax_t)len); | ^ 1 error generated.
-rw-r--r--editors/hexcurse/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/editors/hexcurse/Makefile b/editors/hexcurse/Makefile
index d0d3987e0c81..bbc423bc50c7 100644
--- a/editors/hexcurse/Makefile
+++ b/editors/hexcurse/Makefile
@@ -26,4 +26,6 @@ PLIST_FILES= bin/hexcurse share/man/man1/hexcurse.1.gz
CFLAGS+= -Wno-error=deprecated-non-prototype
.endif
+CFLAGS+= -Wno-error=format-truncation
+
.include <bsd.port.post.mk>