diff options
author | Dan Gohman <gohman@apple.com> | 2008-08-05 23:36:35 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-08-05 23:36:35 +0000 |
commit | 1eac4e0844439219208e94a17796b8232de41a5c (patch) | |
tree | f5b7b4223c3c8e02143c708837d2042748bc01f9 /lib/ExecutionEngine | |
parent | 201bf25f83fba840dcff2cb1625731e7bb22df4d (diff) | |
download | external_llvm-1eac4e0844439219208e94a17796b8232de41a5c.zip external_llvm-1eac4e0844439219208e94a17796b8232de41a5c.tar.gz external_llvm-1eac4e0844439219208e94a17796b8232de41a5c.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')
-rw-r--r-- | lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp | 2 |
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; |