fix off-by-one bug

This commit is contained in:
Axel Kohlmeyer
2022-07-27 19:12:36 -04:00
parent c986dd9b97
commit e583f54ca7

View File

@ -495,8 +495,7 @@ void KokkosLMP::accelerator(int narg, char **arg)
if (pair_only_flag) {
lmp->suffixp = lmp->suffix;
lmp->suffix = new char[7];
strcpy(lmp->suffix,"kk/host");
lmp->suffix = utils::strdup("kk/host");
} else {
// restore settings to regular suffix use, if previously, pair/only was used
if (lmp->suffixp) {