Commit 8c323a70 authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

fix issue in USER-PLUMED due to incorrectly copying strings

parent 21dac57c
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -214,7 +214,7 @@ FixPlumed::FixPlumed(LAMMPS *lmp, int narg, char **arg) :
  // Define compute to calculate potential energy

  id_pe = new char[7];
  id_pe = (char *) "plmd_pe";
  strcpy(id_pe,"plmd_pe");
  char **newarg = new char*[3];
  newarg[0] = id_pe;
  newarg[1] = (char *) "all";
@@ -227,7 +227,7 @@ FixPlumed::FixPlumed(LAMMPS *lmp, int narg, char **arg) :
  // Define compute to calculate pressure tensor

  id_press = new char[9];
  id_press = (char *) "plmd_press";
  strcpy(id_press,"plmd_press");
  newarg = new char*[5];
  newarg[0] = id_press;
  newarg[1] = (char *) "all";