Skip to content

Commit

Permalink
Don't stop reading after an EOF character.
Browse files Browse the repository at this point in the history
Fixes #14.
  • Loading branch information
db81 committed Jun 29, 2015
1 parent a7768ab commit 022e9b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lobbyinterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ QString LobbyInterface::listFilesPriv(QString qpath, bool dirs) {
QString LobbyInterface::readFileLess(QString qpath, unsigned int lines) {
// TODO: deque? Just read the file in the reverse order, geez.
fs::path path = qpath.toStdWString();
uifstream in(path);
uifstream in(path, std::ios::in | std::ios::binary);
if (!in) {
logger.warning("readFileLess(): Could not open ", path);
return "";
Expand Down

0 comments on commit 022e9b6

Please sign in to comment.