1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 19:42:54 +02:00

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.

llvm-svn: 54385
This commit is contained in:
Dan Gohman 2008-08-05 23:36:35 +00:00
parent aea14c2dfe
commit 3e389ed424

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;