********> bugfix.34 Author: Bill Ross Date: Mar 5, 1999 Programs: Carnal Severity: Moderate Description: Coredump when reading a restrt file as STATIC when a box might be expected. (Bad pointer passed to getbox() routine.) Fix: Make the following changes to static.c: --------------------------------------------------------------------------- *** OLD static.c --- NEW static.c *************** *** 152,158 } } if (ifmt == RST && box) { ! getbox(file, tmpname, ifmt, prm, 3*i, statptr->idunion.stat.natoms); } if (i) { --- 152,158 ----- } } if (ifmt == RST && box) { ! getbox(file, tmpname, ifmt, prm, &crd[3*i], statptr->idunion.stat.natoms); } if (i) { *************** *** 169,174 setp->crd = crd; setp->max = statptr->idunion.stat.natoms; setp->prm = prm; if (lastsetp == NULL) statptr->idunion.stat.sets = setp; else --- 169,179 ----- setp->crd = crd; setp->max = statptr->idunion.stat.natoms; setp->prm = prm; + if (box) + setp->box = &crd[3*i]; + else + setp->box = NULL; + if (lastsetp == NULL) statptr->idunion.stat.sets = setp; else ---------------------------------------------------------------------------