********> bugfix.25 Author: Bill Ross Date: 9/30/01 Programs: Carnal Severity: Moderate Description: PUCKER can crash, depending on the underlying memory allocation, plus PUCKER NUCLEIC uses last residue for end of final range ("PUCKER NUCLEIC 1-10;" yields 1-nres). Fix: Make the following changes to pucker.c: ------------------------------------------------------------------------------ *** OLD pucker.c --- NEW pucker.c *************** *** 333,339 **** if (!dash) inerr("expected comma in ", "PUCKER NUCLEIC residues"); ! res2 = num; } } gettok(); --- 333,341 ---- if (!dash) inerr("expected comma in ", "PUCKER NUCLEIC residues"); ! total += resdash(arr, prm, res1, num); ! res1 = res2 = 0; ! dash = 0; } } gettok(); *************** *** 356,362 **** res2++; for (i=res1; i