From 2016e4336301a76b72d4d2965c669caa26458812 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Wed, 14 Jul 2010 12:14:40 +0200 Subject: fix my C++ error (need to cast result of malloc) Signed-off-by: Denys Vlasenko --- lib/Plugins/CCpp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/Plugins/CCpp.cpp') 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'; -- cgit