fixed CFileMgr, the craziest bug i ever had

This commit is contained in:
aap
2019-06-28 21:24:22 +02:00
parent 48cf8b6629
commit 0711bfacd4
4 changed files with 5 additions and 8 deletions

View File

@@ -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