summaryrefslogtreecommitdiff
path: root/test/boxtype.cxx
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2022-09-26 16:12:18 +0200
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2022-09-26 16:12:18 +0200
commit2ffd4e4f1af16b17a286ff354603a717f5d828a5 (patch)
tree99e2d4a7e2fde8e3abb027eb687901440750ee00 /test/boxtype.cxx
parent53d9614adbb728fc4db983c9bb817c6eea870994 (diff)
Replace all calls to sprintf() by calls to snprintf().
Diffstat (limited to 'test/boxtype.cxx')
-rw-r--r--test/boxtype.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/boxtype.cxx b/test/boxtype.cxx
index dc23318cf..17733947a 100644
--- a/test/boxtype.cxx
+++ b/test/boxtype.cxx
@@ -113,7 +113,7 @@ int main(int argc, char ** argv) {
// set window title to show active scheme
Fl::scheme(Fl::scheme()); // init scheme
char title[100];
- sprintf(title,"FLTK boxtypes: scheme = '%s'",Fl::scheme()?Fl::scheme():"none");
+ snprintf(title, 100,"FLTK boxtypes: scheme = '%s'",Fl::scheme()?Fl::scheme():"none");
window->label(title);
// create special container group for box size debugging