Fix the MSVC build.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128441 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Francois Pichet 2011-03-29 00:30:01 +00:00
parent a89cfd23c4
commit 79abc9dd4a

View File

@ -160,7 +160,11 @@ size_t LLVMDisasmInstruction(LLVMDisasmContextRef DCR, uint8_t *Bytes,
std::string p;
p = OS.str();
#ifdef LLVM_ON_WIN32
sprintf(OutString, "%s", p.c_str());
#else
snprintf(OutString, OutStringSize, "%s", p.c_str());
#endif
return Size;
}