From: Berk Hess Date: Mon, 9 Jun 2014 14:19:11 +0000 (+0200) Subject: Set make_ndx max name length and count to 1024 X-Git-Url: http://biod.pnpi.spb.ru/gitweb/?a=commitdiff_plain;h=48daa3110becb55e92ca42976852efc869fe4895;p=alexxy%2Fgromacs.git Set make_ndx max name length and count to 1024 Limits were 30, which was a bit on the low side. Fixes #1512 Change-Id: I62d5146fdac06b7b5b7f56925addeca561c83173 --- diff --git a/src/gromacs/gmxana/gmx_make_ndx.c b/src/gromacs/gmxana/gmx_make_ndx.c index 7c8f276f97..686ee49aaa 100644 --- a/src/gromacs/gmxana/gmx_make_ndx.c +++ b/src/gromacs/gmxana/gmx_make_ndx.c @@ -55,8 +55,11 @@ #include "gromacs/legacyheaders/gmx_fatal.h" -#define MAXNAMES 30 -#define NAME_LEN 30 +/* It's not nice to have size limits, but we should not spend more time + * on this ancient tool, but instead use the new selection library. + */ +#define MAXNAMES 1024 +#define NAME_LEN 1024 gmx_bool bCase = FALSE;