Skip to content
Snippets Groups Projects
Commit 1dc78a7e authored by Tim Mattox's avatar Tim Mattox
Browse files

USER-DPD: correct off-by-one errors in PairMultiLucyRX::coeff()

parent 7a593c2f
No related branches found
No related tags found
No related merge requests found
......@@ -385,11 +385,11 @@ void PairMultiLucyRX::coeff(int narg, char **arg)
nspecies = atom->nspecies_dpd;
int n;
n = strlen(arg[3]) + 1;
n = strlen(arg[4]) + 1;
site1 = new char[n];
strcpy(site1,arg[4]);
n = strlen(arg[4]) + 1;
n = strlen(arg[5]) + 1;
site2 = new char[n];
strcpy(site2,arg[5]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment