This website works better with JavaScript.
Home
Help
Sign In
lolengine
/
lol
mirror of
https://github.com/lolengine/lol
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
0
Wiki
Activity
Browse Source
sys: use progressively larger temporary buffers when reading files.
legacy
Sam Hocevar
sam
11 years ago
parent
75d4503a01
commit
526feb9b80
1 changed files
with
1 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-2
src/sys/file.cpp
+ 1
- 2
src/sys/file.cpp
View File
@@ -84,8 +84,7 @@ class FileData
ret.Resize(oldsize + done);
memcpy(&ret[oldsize], &buf[0], done);
/* XXX: we could resize the buffer here
* buf.Resize(buf.Count() * 3 / 2); */
buf.Resize(buf.Count() * 3 / 2);
}
return ret;
}
Write
Preview
Loading…
Cancel
Save