1
0

patch-fstream_eof 379 B

123456789101112131415
  1. $Id$
  2. * fix crash on reading from closed fstream
  3. --- uClibc++-0.2.1.orig/include/fstream 2006-09-04 04:28:09.000000000 +0200
  4. +++ uClibc++-0.2.1/include/fstream 2008-12-14 18:20:27.000000000 +0100
  5. @@ -201,6 +201,9 @@ namespace std{
  6. */
  7. + if(fp == 0)
  8. + return traits::eof();
  9. +
  10. if(basic_streambuf<charT,traits>::eback() == 0){
  11. //No buffer, so...
  12. charT c;