Skip to content

Commit

Permalink
APREPRO: Refactor last change
Browse files Browse the repository at this point in the history
  • Loading branch information
gdsjaar committed Apr 23, 2024
1 parent ebece95 commit 4929ff4
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/seacas/libraries/aprepro_lib/apr_builtin.cc
Original file line number Diff line number Diff line change
Expand Up @@ -612,10 +612,9 @@ namespace SEAMS {
return tmp;
}
else {
static char tmpstr[128];
snprintf(tmpstr, 128, format->value.svar.c_str(), x);
new_string(tmpstr, &tmp);
return (tmp);
auto tmpstr = fmt::sprintf(format->value.svar, x);
new_string(tmpstr.c_str(), &tmp);
return tmp;
}
}

Expand Down

0 comments on commit 4929ff4

Please sign in to comment.