fix strdup() vs utils::strdup() bug

This commit is contained in:
Axel Kohlmeyer
2021-02-05 17:16:38 -05:00
parent 960713be3b
commit 19811077b7

View File

@ -328,7 +328,7 @@ void FixAdapt::init()
// strip it for pstyle arg to pair_match() and set nsub = N
// this should work for appended suffixes as well
char *pstyle = strdup(ad->pstyle);
char *pstyle = utils::strdup(ad->pstyle);
char *cptr;
int nsub = 0;
if ((cptr = strchr(pstyle,':'))) {