diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2022-09-26 16:12:18 +0200 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2022-09-26 16:12:18 +0200 |
| commit | 2ffd4e4f1af16b17a286ff354603a717f5d828a5 (patch) | |
| tree | 99e2d4a7e2fde8e3abb027eb687901440750ee00 /test/unittest_scrollbarsize.cxx | |
| parent | 53d9614adbb728fc4db983c9bb817c6eea870994 (diff) | |
Replace all calls to sprintf() by calls to snprintf().
Diffstat (limited to 'test/unittest_scrollbarsize.cxx')
| -rw-r--r-- | test/unittest_scrollbarsize.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unittest_scrollbarsize.cxx b/test/unittest_scrollbarsize.cxx index 9ecdf73fe..8f2b30311 100644 --- a/test/unittest_scrollbarsize.cxx +++ b/test/unittest_scrollbarsize.cxx @@ -39,7 +39,7 @@ class MyTable : public Fl_Table { fl_font(FL_HELVETICA, 8); // set font for drawing operations return; case CONTEXT_CELL: // Draw data in cells - sprintf(s, "%c", 'A'+ROW+COL); + snprintf(s, 10, "%c", 'A'+ROW+COL); fl_push_clip(X,Y,W,H); // Draw cell bg fl_color(FL_WHITE); fl_rectf(X,Y,W,H); |
