git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@154 f3b2605a-c512-4ea7-a41b-209d697bcdaa

This commit is contained in:
sjplimp 2006-11-14 14:54:17 +00:00
parent 518ae661f8
commit ff281681e3
2 changed files with 2 additions and 2 deletions

View File

@ -303,7 +303,7 @@ void PairSW::init_style()
void PairSW::read_file(char *file)
{
int params_per_line = 13;
char **words = new char*[params_per_line];
char **words = new char*[params_per_line+1];
if (params) delete [] params;
params = NULL;

View File

@ -340,7 +340,7 @@ void PairTersoff::init_style()
void PairTersoff::read_file(char *file)
{
int params_per_line = 15;
char **words = new char*[params_per_line];
char **words = new char*[params_per_line+1];
if (params) delete [] params;
params = NULL;