From 5e21c93a0bc3e686815c87698276adaa1908fb45 Mon Sep 17 00:00:00 2001 From: sjplimp Date: Mon, 28 Jun 2010 18:50:05 +0000 Subject: [PATCH] git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@4352 f3b2605a-c512-4ea7-a41b-209d697bcdaa --- src/fix_efield.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/fix_efield.cpp b/src/fix_efield.cpp index 215742c1fb..909a3a6861 100644 --- a/src/fix_efield.cpp +++ b/src/fix_efield.cpp @@ -53,8 +53,8 @@ FixEfield::FixEfield(LAMMPS *lmp, int narg, char **arg) : if (strstr(arg[4],"v_") == arg[4]) { int n = strlen(&arg[4][2]) + 1; - xstr = new char[n]; - strcpy(xstr,&arg[4][2]); + ystr = new char[n]; + strcpy(ystr,&arg[4][2]); } else { ey = efactor * atof(arg[4]); ystyle = CONSTANT; @@ -62,8 +62,8 @@ FixEfield::FixEfield(LAMMPS *lmp, int narg, char **arg) : if (strstr(arg[5],"v_") == arg[5]) { int n = strlen(&arg[5][2]) + 1; - xstr = new char[n]; - strcpy(xstr,&arg[5][2]); + zstr = new char[n]; + strcpy(zstr,&arg[5][2]); } else { ez = efactor * atof(arg[5]); zstyle = CONSTANT;