Core: LoadFile CHUNK fix

This commit is contained in:
Mirek Fidler 2022-05-18 09:56:10 +02:00
parent 34cdcee068
commit 3fdd8be072

View file

@ -1217,10 +1217,10 @@ String LoadFile(const char *filename) {
FindFile ff(filename);
if(ff && ff.IsFile()) {
#ifdef PLATFORM_POSIX
if(ff.GetLength() == 0) { // handle speciale cases like /proc/...
if(ff.GetLength() == 0) { // handle special cases like /proc/...
int fd = open(filename,O_RDONLY);
if(fd >= 0) {
const int CHUNK = 16;
const int CHUNK = 32768;
StringBuffer s;
for(;;) {
int n = s.GetCount();