From 4929ff40422fceb3488912e80567b1a9c36bf1cb Mon Sep 17 00:00:00 2001 From: Greg Sjaardema Date: Tue, 23 Apr 2024 14:47:34 -0600 Subject: [PATCH] APREPRO: Refactor last change --- packages/seacas/libraries/aprepro_lib/apr_builtin.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/seacas/libraries/aprepro_lib/apr_builtin.cc b/packages/seacas/libraries/aprepro_lib/apr_builtin.cc index a5e58bd364..a6af6761c1 100644 --- a/packages/seacas/libraries/aprepro_lib/apr_builtin.cc +++ b/packages/seacas/libraries/aprepro_lib/apr_builtin.cc @@ -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; } }