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
This commit is contained in:
Dan Gohman 2008-08-05 23:36:35 +00:00
parent 201bf25f83
commit 1eac4e0844

View File

@ -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;