Fix editconf real-bool misusage
authorRoland Schulz <roland@utk.edu>
Sun, 27 May 2012 19:26:24 +0000 (15:26 -0400)
committerRoland Schulz <roland@utk.edu>
Sun, 27 May 2012 19:26:24 +0000 (15:26 -0400)
Bool variable was declared as real. Caused invalid stack read
in double precision. Could have caused wrong value to be printed
for argument display but couldn't have caused wrong behavior.

Found with AddressSanitizer

Change-Id: I32553b1a898fb3a7f072ae177518dd63fad56dde

src/tools/gmx_editconf.c

index e5451a31abfd86bf80e8c87b4e841f05c9a862c9..918cb156e1f0f5c02c4a68bf4a32538ca6ed5338 100644 (file)
@@ -634,7 +634,7 @@ int gmx_editconf(int argc, char *argv[])
                         "-rvdw", FALSE, etREAL,
                          { &rvdw },
                         "Default Van der Waals radius (in nm) if one can not be found in the database or if no parameters are present in the topology file" },
-                    { "-sig56", FALSE, etREAL,
+                    { "-sig56", FALSE, etBOOL,
                         { &bSig56 },
                         "Use rmin/2 (minimum in the Van der Waals potential) rather than [GRK]sigma[grk]/2 " },
                     {