summaryrefslogtreecommitdiff
path: root/log.cpp
diff options
context:
space:
mode:
authorRusty Wagner <dontpanic@binaryninja.com>2015-03-03 16:46:20 -0500
committerRusty Wagner <dontpanic@binaryninja.com>2015-03-03 16:46:20 -0500
commitc0fdb4320c771fec51e7675a2602ced3ca613500 (patch)
tree1321d6cf13dc09b7e36daa1fc477111f48b8e6ab /log.cpp
parent512ebc2ac144111702171d7ac8c6a1eb2d25b650 (diff)
Fix missing cast
Diffstat (limited to 'log.cpp')
-rw-r--r--log.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/log.cpp b/log.cpp
index 941414e5..7687a190 100644
--- a/log.cpp
+++ b/log.cpp
@@ -47,7 +47,7 @@ static void PerformLog(BNLogLevel level, const char* fmt, va_list args)
int len = _vscprintf(fmt, args);
if (len < 0)
return;
- char* msg = malloc(len + 1);
+ char* msg = (char*)malloc(len + 1);
if (!msg)
return;
if (vsnprintf(msg, len + 1, fmt, args) >= 0)