Set make_ndx max name length and count to 1024
authorBerk Hess <hess@kth.se>
Mon, 9 Jun 2014 14:19:11 +0000 (16:19 +0200)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Mon, 9 Jun 2014 18:05:22 +0000 (20:05 +0200)
Limits were 30, which was a bit on the low side.
Fixes #1512

Change-Id: I62d5146fdac06b7b5b7f56925addeca561c83173

src/gromacs/gmxana/gmx_make_ndx.c

index 7c8f276f9721ecae0c9e9e40e942dfeaf27de03e..686ee49aaa59611fee725941e93d7eeb7159aac9 100644 (file)
 
 #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;