summaryrefslogtreecommitdiff
path: root/src/fs/virtfs/virtfstools.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-03-28 20:20:54 +0300
committerAndrei Karas <akaras@inbox.ru>2017-03-28 23:25:13 +0300
commit75a5173176adfc4bc417c10df137d9ea8d90d403 (patch)
tree2d095e72f084ff96ee5ce3608453d98da0eda5d7 /src/fs/virtfs/virtfstools.h
parentb6831b3b3053b1777402a35d8b3ae3cca2f62bc4 (diff)
downloadplus-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.h2
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,