diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-03-28 20:20:54 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-03-28 23:25:13 +0300 |
commit | 75a5173176adfc4bc417c10df137d9ea8d90d403 (patch) | |
tree | 2d095e72f084ff96ee5ce3608453d98da0eda5d7 /src/fs/virtfs/virtfstools.h | |
parent | b6831b3b3053b1777402a35d8b3ae3cca2f62bc4 (diff) | |
download | plus-75a5173176adfc4bc417c10df137d9ea8d90d403.tar.gz plus-75a5173176adfc4bc417c10df137d9ea8d90d403.tar.bz2 plus-75a5173176adfc4bc417c10df137d9ea8d90d403.tar.xz plus-75a5173176adfc4bc417c10df137d9ea8d90d403.zip |
Change memory allocation in Virtfs::LoadFile from calloc to new.
Diffstat (limited to 'src/fs/virtfs/virtfstools.h')
-rw-r--r-- | src/fs/virtfs/virtfstools.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fs/virtfs/virtfstools.h b/src/fs/virtfs/virtfstools.h index 4f2a77f4c..c9ff1d290 100644 --- a/src/fs/virtfs/virtfstools.h +++ b/src/fs/virtfs/virtfstools.h @@ -29,7 +29,7 @@ namespace VirtFs { - void *loadFile(const std::string &restrict fileName, + char *loadFile(const std::string &restrict fileName, int &restrict fileSize); void searchAndAddArchives(const std::string &restrict path, const std::string &restrict ext, |