[med-svn] [theseus] 07/09: Further string buffers need to be increased. No idea why gcc-7 thinks it should be even larger than PATH_MAX but ading 16 byte should do
Andreas Tille
tille at debian.org
Thu Aug 24 19:12:27 UTC 2017
This is an automated email from the git hooks/post-receive script.
tille pushed a commit to tag debian/3.3.0-6
in repository theseus.
commit e2ed4a48ddb5731e90e172b48a212e88183820db
Author: Andreas Tille <tille at debian.org>
Date: Thu Aug 24 16:02:11 2017 +0200
Further string buffers need to be increased. No idea why gcc-7 thinks it should be even larger than PATH_MAX but ading 16 byte should do
---
debian/patches/gcc-7.patch | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/debian/patches/gcc-7.patch b/debian/patches/gcc-7.patch
index 3c95bdf..592944a 100644
--- a/debian/patches/gcc-7.patch
+++ b/debian/patches/gcc-7.patch
@@ -34,3 +34,14 @@ Description: Increase string length of string buffer to build with gcc-7
FILE *pcavecs_fp = NULL, *pcastats_fp = NULL;
double biggest, bstick;
char aster;
+--- a/GibbsMet.c
++++ b/GibbsMet.c
+@@ -2110,7 +2110,7 @@ GibbsMet(CdsArray *cdsA)
+ int i;
+ const int cnum = cdsA->cnum, vlen = cdsA->vlen;
+ int burn = algo->bayes;
+- char paramfname[256], maxfname[256];
++ char paramfname[PATH_MAX+16], maxfname[PATH_MAX+16];
+ //char tmpname[256];
+ double **theta = MatAlloc(cnum, 3);
+ double invtr, mlik, hmlik, blik, amlik, diff, ediff, liksi;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/theseus.git
More information about the debian-med-commit
mailing list