diff options
author | Andrei Karas <akaras@inbox.ru> | 2010-03-04 00:22:29 +0200 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2010-03-03 15:36:19 -0700 |
commit | 6e68568d9fb44762e4c3257b505e8b67ac1f70fe (patch) | |
tree | 5e81c1f6c471ba73392b710981c61460ac1e565d /src/utils | |
parent | f5f7a7d5990d1133f714b6cd431aecf6a332fbd5 (diff) | |
download | mana-client-6e68568d9fb44762e4c3257b505e8b67ac1f70fe.tar.gz mana-client-6e68568d9fb44762e4c3257b505e8b67ac1f70fe.tar.bz2 mana-client-6e68568d9fb44762e4c3257b505e8b67ac1f70fe.tar.xz mana-client-6e68568d9fb44762e4c3257b505e8b67ac1f70fe.zip |
Fix possible memory corruption.
Signed-off-by: Jared Adams <jaxad0127@gmail.com>
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/xml.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/xml.cpp b/src/utils/xml.cpp index 76d9f857..341f34c0 100644 --- a/src/utils/xml.cpp +++ b/src/utils/xml.cpp @@ -52,7 +52,7 @@ namespace XML size = file.tellg(); file.seekg(0, std::ios::beg); - data = new char[size]; + data = (char*) malloc(size); file.read(data, size); file.close(); |