********> bugfix 1 Author: Christine Cezard - q4md-forcefieldtools.org Date: 13 October 2008 Programs: LEaP: xLEaP and tLEaP Usage: Save this file in your $AMBERHOME directory and then apply this patch file to your distribution as follows: cd $AMBERHOME patch -p0 -N < patch.txt recompile LEaP Description: The savemol2 command did not work on some Linux distributions (i.e. Ubuntu, 32 bits), leading to a crash of LEaP with a "stack smashing detected" error when writing the atoms description. The patch below reduces the 'buffer' size when writing the ATOM description. --------------------------------------------------------------------------- --- src/leap/src/leap/pdb_format.c 2007-10-31 21:43:23.000000000 +0100 +++ src/leap/src/leap/pdb_format.c 2008-10-13 18:08:56.000000000 +0200 @@ -143,8 +143,8 @@ "%9 %5d", "MODEL %5d" }, { /* 35 PDB_ENDMDL */ "", "ENDMDL" }, - { /* MOL2_ATOM */ + { /* MOL2_ATOM */ "%3d %6s %12.6f%12.6f%12.6f %3s %3d %3s %12.4f", - "%3d %-4s %11.6f %11.6f %11.6f %-4s %2d %-5s %8.4f ****" }, + "%3d %-4s %11.6f %11.6f %11.6f %-4s %2d %-5s %8.4f ****" }, };