aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-08-05 23:36:35 +0000
committerDan Gohman <gohman@apple.com>2008-08-05 23:36:35 +0000
commite5dce98796289e1c0e3a338b15cde51b51ea9f2f (patch)
treef5b7b4223c3c8e02143c708837d2042748bc01f9 /lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
parent6a2df572664b55687a437db213b7069d7676c405 (diff)
downloadexternal_llvm-e5dce98796289e1c0e3a338b15cde51b51ea9f2f.zip
external_llvm-e5dce98796289e1c0e3a338b15cde51b51ea9f2f.tar.gz
external_llvm-e5dce98796289e1c0e3a338b15cde51b51ea9f2f.tar.bz2
Use strcpy instead of sprintf here. This avoids a GCC 4.3 format-string
warning. There wasn't actually a problem here, because the contents of the string are known. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54385 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp')
-rw-r--r--lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp b/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
index b85f270..684d7db 100644
--- a/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
+++ b/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
@@ -343,7 +343,7 @@ GenericValue lle_X_sprintf(FunctionType *FT, const vector<GenericValue> &Args) {
switch (Last) {
case '%':
- sprintf(Buffer, FmtBuf); break;
+ strcpy(Buffer, "%"); break;
case 'c':
sprintf(Buffer, FmtBuf, uint32_t(Args[ArgNo++].IntVal.getZExtValue()));
break;