From 2ffd4e4f1af16b17a286ff354603a717f5d828a5 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Mon, 26 Sep 2022 16:12:18 +0200 Subject: Replace all calls to sprintf() by calls to snprintf(). --- test/pack.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/pack.cxx') diff --git a/test/pack.cxx b/test/pack.cxx index 64398ddab..62ff92323 100644 --- a/test/pack.cxx +++ b/test/pack.cxx @@ -104,7 +104,7 @@ int main(int argc, char **argv) { int xx = 35; for (int i = 0; i < nbuttons; i++) { char ltxt[8]; - sprintf(ltxt, "b%d", i + 1); + snprintf(ltxt, 8, "b%d", i + 1); Fl_Button *b = new Fl_Button(xx, xx, 25, 25); b->copy_label(ltxt); xx += 10; -- cgit v1.2.3