diff --git a/src/dump_custom.cpp b/src/dump_custom.cpp index 56836b8446..273b39525c 100644 --- a/src/dump_custom.cpp +++ b/src/dump_custom.cpp @@ -78,8 +78,8 @@ DumpCustom::DumpCustom(LAMMPS *lmp, int narg, char **arg) : int ioffset = 5; expand = 0; - nfield = nargnew = utils::expand_args(FLERR,narg-5,&arg[5],1,earg,lmp); - if (earg != &arg[5]) expand = 1; + nfield = nargnew = utils::expand_args(FLERR,narg-ioffset,&arg[ioffset],1,earg,lmp); + if (earg != &arg[ioffset]) expand = 1; // allocate field vectors