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/threads.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/threads.cxx') diff --git a/test/threads.cxx b/test/threads.cxx index 68370d246..f7349a668 100644 --- a/test/threads.cxx +++ b/test/threads.cxx @@ -73,7 +73,7 @@ extern "C" void* prime_func(void* p) for (pp=3; pp<=hn; pp+=2) if ( n%pp == 0 ) break; if (pp >= hn) { char s[128]; - sprintf(s, "%d", n); + snprintf(s, 128, "%d", n); // Obtain a lock before we access the browser widget... Fl::lock(); -- cgit v1.2.3