From 0711bfacd451b8cbe59ae08efd595178e928f7dc Mon Sep 17 00:00:00 2001 From: aap Date: Fri, 28 Jun 2019 21:24:22 +0200 Subject: fixed CFileMgr, the craziest bug i ever had --- src/FileMgr.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/FileMgr.cpp') diff --git a/src/FileMgr.cpp b/src/FileMgr.cpp index d4e0b89b..954fcdef 100644 --- a/src/FileMgr.cpp +++ b/src/FileMgr.cpp @@ -265,10 +265,10 @@ CFileMgr::Seek(int fd, int offset, int whence) return !!myfseek(fd, offset, whence); } -char* +bool CFileMgr::ReadLine(int fd, char *buf, int len) { - return myfgets(buf, len, fd); + return myfgets(buf, len, fd) != nil; } int -- cgit v1.2.3