mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-16 20:40:16 +00: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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54385 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
201bf25f83
commit
1eac4e0844
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user