mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
Core: LoadFile CHUNK fix
This commit is contained in:
parent
34cdcee068
commit
3fdd8be072
1 changed files with 2 additions and 2 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue