[Scummvm-cvs-logs] SF.net SVN: scummvm:[52396] scummvm/trunk/engines/sci/engine/kfile.cpp
wjpalenstijn at users.sourceforge.net
wjpalenstijn at users.sourceforge.net
Thu Aug 26 00:05:11 CEST 2010
Revision: 52396
http://scummvm.svn.sourceforge.net/scummvm/?rev=52396&view=rev
Author: wjpalenstijn
Date: 2010-08-25 22:05:10 +0000 (Wed, 25 Aug 2010)
Log Message:
-----------
SCI: Return empty string from fgets with maxsize 1
This should fix r3049360 in Hoyle4.
Modified Paths:
--------------
scummvm/trunk/engines/sci/engine/kfile.cpp
Modified: scummvm/trunk/engines/sci/engine/kfile.cpp
===================================================================
--- scummvm/trunk/engines/sci/engine/kfile.cpp 2010-08-25 20:10:45 UTC (rev 52395)
+++ scummvm/trunk/engines/sci/engine/kfile.cpp 2010-08-25 22:05:10 UTC (rev 52396)
@@ -240,7 +240,7 @@
dest[strSize - 1] = 0;
}
} else {
- *dest = f->_in->readByte();
+ *dest = 0;
}
debugC(2, kDebugLevelFile, " -> FGets'ed \"%s\"", dest);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list