From: Matthew Fernandez Date: Thu, 22 Jul 2021 03:15:35 +0000 (-0700) Subject: getdyn: replace sfsprintf call with snprintf X-Git-Tag: 2.49.0~40^2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0e0d8ea53f7535f3e857af0070892264997087ca;p=graphviz getdyn: replace sfsprintf call with snprintf Related to #1998. --- 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;