********> bugfix.11 Author: Dave Case Date: 5/08/02 Programs: antechamber Severity: Mild Description: mol2-format files may have atom names greater than 4 characters, or residue names greater than 3 characters; these are not properly truncated when read into antechamber Fix: Make the following change to amber7/src/antechamber/antechamber.c ----------------------------------------------------------------------------- *** antechamber.c 2002/02/27 19:27:48 1.23 --- antechamber.c 2002/05/08 15:52:19 *************** *** 1227,1236 **** --- 1227,1238 ---- if(j>3) break; atom[i].name[j]=tmpchar4[j]; } + atom[i].aa[4] = '\0'; if(strlen(tmpc2)>3) { atom[i].aa[0]=tmpc2[0]; atom[i].aa[1]=tmpc2[1]; atom[i].aa[2]=tmpc2[2]; + atom[i].aa[3]='\0'; } i++; } ----------------------------------------------------------------------------- Workarounds: Edit the mol2 files to limit the lengths of atom and residue names Files affected: amber7/src/antechamber/antechamber.c