summaryrefslogtreecommitdiff
path: root/net/fstrm
diff options
context:
space:
mode:
authorhe <he@pkgsrc.org>2019-12-16 12:52:23 +0000
committerhe <he@pkgsrc.org>2019-12-16 12:52:23 +0000
commit03670f115a404060d0f4dab31ef12f973ac59545 (patch)
tree69d9fc3d235d557ccf4862aff481594848a60b01 /net/fstrm
parentdc18db24a723ef31291f6b1b9eed97bb6778b267 (diff)
downloadpkgsrc-03670f115a404060d0f4dab31ef12f973ac59545.tar.gz
Fix format / buffer size warnings with newer gcc (7.4.0) by
also leaving room for the terminating 0 character. Also submitted as https://github.com/farsightsec/fstrm/pull/63 Bump PKGREVISION.
Diffstat (limited to 'net/fstrm')
-rw-r--r--net/fstrm/Makefile3
-rw-r--r--net/fstrm/patches/patch-libmy_argv.c24
2 files changed, 26 insertions, 1 deletions
diff --git a/net/fstrm/Makefile b/net/fstrm/Makefile
index 4a5196f59f7..6819fb39c4c 100644
--- a/net/fstrm/Makefile
+++ b/net/fstrm/Makefile
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.5 2019/10/14 17:47:24 he Exp $
+# $NetBSD: Makefile,v 1.6 2019/12/16 12:52:23 he Exp $
DISTNAME= fstrm-0.6.0
+PKGREVISION= 1
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_GITHUB:=farsightsec/}
GITHUB_TAG= v${PKGVERSION_NOREV}
diff --git a/net/fstrm/patches/patch-libmy_argv.c b/net/fstrm/patches/patch-libmy_argv.c
new file mode 100644
index 00000000000..e2f830e4ba0
--- /dev/null
+++ b/net/fstrm/patches/patch-libmy_argv.c
@@ -0,0 +1,24 @@
+$NetBSD: patch-libmy_argv.c,v 1.1 2019/12/16 12:52:23 he Exp $
+
+Include space for the terminating 0 character.
+
+--- libmy/argv.c.orig 2019-10-14 16:25:11.000000000 +0000
++++ libmy/argv.c
+@@ -482,7 +482,7 @@ static int expand_buf(const void *buf, c
+ if (out_p + 2 >= max_p) {
+ break;
+ }
+- LOC_SNPRINTF(SNP_ARG(out_p, 2), "\\%c", *(spec_p - 1));
++ LOC_SNPRINTF(SNP_ARG(out_p, 3), "\\%c", *(spec_p - 1));
+ out_p += 2;
+ continue;
+ }
+@@ -499,7 +499,7 @@ static int expand_buf(const void *buf, c
+ if (out_p + 4 >= max_p) {
+ break;
+ }
+- LOC_SNPRINTF(SNP_ARG(out_p, 4), "\\%03o", *buf_p);
++ LOC_SNPRINTF(SNP_ARG(out_p, 5), "\\%03o", *buf_p);
+ out_p += 4;
+ }
+ }