From 444328cca551c74c61e84dd735c1771cd726a150 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sun, 21 Feb 2021 19:02:39 -0800 Subject: [PATCH] swap an sprintf for an snprintf Towards #1950. --- cmd/tools/unflatten.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.50.1