summaryrefslogtreecommitdiff
path: root/test/pack.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/pack.cxx
parent53d9614adbb728fc4db983c9bb817c6eea870994 (diff)
Replace all calls to sprintf() by calls to snprintf().
Diffstat (limited to 'test/pack.cxx')
-rw-r--r--test/pack.cxx2
1 files changed, 1 insertions, 1 deletions
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;