Removed srenew that was making array smaller incorrectly.
authorDavid van der Spoel <spoel@xray.bmc.uu.se>
Wed, 23 Mar 2016 13:04:00 +0000 (14:04 +0100)
committerDavid van der Spoel <spoel@xray.bmc.uu.se>
Wed, 23 Mar 2016 13:36:00 +0000 (14:36 +0100)
commit1e130c8cd6230f96500162e55972023257ffeffa
treedfe58e6861521461b37dafce769fcc5cfad55a13
parent9836b1ebf7594f1e50e89291d4d7eabd3f9783c0
Removed srenew that was making array smaller incorrectly.

An array y was first allocated to 6 entries, then reduced
to 3 entries using srenew, but after that the indices
3, 4 and 5 were used anyway. Removing the srenew fixes the probem.

Fixes #1920

Change-Id: I3f35f0af3f56d33435bf54a9c7cda6273fb3f05a
src/gromacs/gmxana/gmx_dielectric.c