summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2010-07-14 12:14:40 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2010-07-14 12:14:40 +0200
commit2016e4336301a76b72d4d2965c669caa26458812 (patch)
tree3b3a56d106206859bebc9aaf49f0459a110f8b3c /lib
parent52dfaea4a992d2c58d6a41aae01c07c7d73d2213 (diff)
downloadabrt-2016e4336301a76b72d4d2965c669caa26458812.tar.gz
abrt-2016e4336301a76b72d4d2965c669caa26458812.tar.xz
abrt-2016e4336301a76b72d4d2965c669caa26458812.zip
fix my C++ error (need to cast result of malloc)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/Plugins/CCpp.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Plugins/CCpp.cpp b/lib/Plugins/CCpp.cpp
index c6c32d1e..d8aeb6b4 100644
--- a/lib/Plugins/CCpp.cpp
+++ b/lib/Plugins/CCpp.cpp
@@ -396,7 +396,7 @@ static void InstallDebugInfos(const char *pDebugDumpDir,
* yet, having it truly unlimited is bad too,
* therefore we are using LARGE, but still limited buffer.
*/
- char *buff = xmalloc(64*1024);
+ char *buff = (char*) xmalloc(64*1024);
while (fgets(buff, 64*1024, pipeout_fp))
{
strchrnul(buff, '\n')[0] = '\0';