DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

Link: http://www.fltk.org/str.php?L2284
Version: 1.1.10


Indeed the code should be rewritten to check for errors during file reading
and fail more gracefully.

In fact, there are many places in the code where getc() is used badly..
just run in the fltk/src directory

    grep 'getc(' *.cxx

..and indeed you'll see the problem in much of the code.

I'd suggest using fread() instead which has very clear separation
of data and status info.


Link: http://www.fltk.org/str.php?L2284
Version: 1.1.10

_______________________________________________
fltk-bugs mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-bugs

Reply via email to