1
0

patch-fstream_eof 403 B

123456789101112131415
  1. $Id$
  2. * fix crash on reading from closed fstream
  3. --- uClibc++-0.2.2.orig/include/fstream 2007-06-04 00:51:12.000000000 +0200
  4. +++ uClibc++-0.2.2/include/fstream 2009-11-20 22:52:48.000000000 +0100
  5. @@ -206,6 +206,9 @@ namespace std{
  6. return traits::eof();
  7. }
  8. + if(fp == 0)
  9. + return traits::eof();
  10. +
  11. if(basic_streambuf<charT,traits>::eback() == 0){
  12. //No buffer, so...
  13. charT c;