forked from lijiext/lammps
git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@154 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
parent
518ae661f8
commit
ff281681e3
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue