From 6e68568d9fb44762e4c3257b505e8b67ac1f70fe Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 4 Mar 2010 00:22:29 +0200 Subject: Fix possible memory corruption. Signed-off-by: Jared Adams --- src/utils/xml.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- cgit v1.2.3-70-g09d2