Commit 144780f6 authored by stamoor's avatar stamoor
Browse files

Fixing memory error

git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@13356 f3b2605a-c512-4ea7-a41b-209d697bcdaa
parent 61e93e53
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -157,7 +157,7 @@ FixNPHug::FixNPHug(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");