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/scroll.cxx | |
| parent | 53d9614adbb728fc4db983c9bb817c6eea870994 (diff) | |
Replace all calls to sprintf() by calls to snprintf().
Diffstat (limited to 'test/scroll.cxx')
| -rw-r--r-- | test/scroll.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/scroll.cxx b/test/scroll.cxx index 2ca5ac142..5403613ea 100644 --- a/test/scroll.cxx +++ b/test/scroll.cxx @@ -95,7 +95,7 @@ int main(int argc, char** argv) { int n = 0; for (int y=0; y<16; y++) for (int x=0; x<5; x++) { - char buf[20]; sprintf(buf,"%d",n++); + char buf[20]; snprintf(buf, 20,"%d",n++); Fl_Button* b = new Fl_Button(x*75,y*25+(y>=8?5*75:0),75,25); b->copy_label(buf); b->color(n); |
