From: Matthew Fernandez Date: Mon, 22 Feb 2021 03:02:39 +0000 (-0800) Subject: swap an sprintf for an snprintf X-Git-Tag: 2.47.0~31^2~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=444328cca551c74c61e84dd735c1771cd726a150;p=graphviz swap an sprintf for an snprintf Towards #1950. --- diff --git a/cmd/tools/unflatten.c b/cmd/tools/unflatten.c index 9639c1c59..3ee88e988 100644 --- a/cmd/tools/unflatten.c +++ b/cmd/tools/unflatten.c @@ -65,7 +65,7 @@ static void adjustlen(Agedge_t * e, Agsym_t * sym, int newlen) { char buf[12]; - sprintf(buf, "%d", newlen); + snprintf(buf, sizeof(buf), "%d", newlen); agxset(e, sym, buf); }