forked from lijiext/lammps
Fixing memory error
git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@13358 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
parent
9127ac0d5b
commit
cd6f885c6d
|
@ -202,7 +202,7 @@ FixMSST::FixMSST(LAMMPS *lmp, int narg, char **arg) :
|
|||
|
||||
// create a new compute potential energy compute
|
||||
|
||||
n = strlen(id) + 3;
|
||||
n = strlen(id) + 4;
|
||||
id_pe = new char[n];
|
||||
strcpy(id_pe,id);
|
||||
strcat(id_pe,"_pe");
|
||||
|
|
Loading…
Reference in New Issue