gets() -> fgets()

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7712 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Greg Ercolano
2010-10-11 01:41:50 +00:00
parent 2eb064fa45
commit 9e82db43ae
+1 -1
View File
@@ -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