mirror of
https://github.com/fltk/fltk.git
synced 2026-05-23 15:56:10 +08:00
gets() -> fgets()
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7712 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user