From 0e0d8ea53f7535f3e857af0070892264997087ca Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Wed, 21 Jul 2021 20:15:35 -0700 Subject: [PATCH] getdyn: replace sfsprintf call with snprintf Related to #1998. --- lib/expr/exeval.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/expr/exeval.c b/lib/expr/exeval.c index e9996ac36..ab39e6315 100644 --- a/lib/expr/exeval.c +++ b/lib/expr/exeval.c @@ -148,7 +148,7 @@ getdyn(Expr_t* ex, Exnode_t* expr, void* env, Exassoc_t** assoc) key = (*ex->disc->keyf) (ex, v, type, ex->disc); } else key.integer = v.integer; - sfsprintf(buf, sizeof(buf), "%I*x", sizeof(key.integer), key.integer); + snprintf(buf, sizeof(buf), "%llx", (unsigned long long)key.integer); keyname = buf; } else keyname = v.string; -- 2.40.0