diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/button.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/button.cxx b/test/button.cxx index 690da9a4c..03a63264a 100644 --- a/test/button.cxx +++ b/test/button.cxx @@ -43,7 +43,7 @@ void exitcb(Fl_Widget *, void *) { // test Fl::add_fd()... void stdin_cb(int, void*) { char buf[1000]; - gets(buf); + fgets(buf, sizeof(buf), stdin); printf("stdin callback\n"); } #endif |
