1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-14 00:22:38 +03:00

Fix the formatting of %c in the printf() SQL function.

FossilOrigin-Name: 3375571a5e267744c19a7c310840256cec57a242
This commit is contained in:
drh
2013-12-17 15:58:42 +00:00
parent a5c1416d64
commit fc6ee9df22
4 changed files with 16 additions and 13 deletions

View File

@@ -606,7 +606,9 @@ void sqlite3VXPrintf(
#endif /* !defined(SQLITE_OMIT_FLOATING_POINT) */
break;
case etSIZE:
if( !bArgList ) *(va_arg(ap,int*)) = pAccum->nChar;
if( !bArgList ){
*(va_arg(ap,int*)) = pAccum->nChar;
}
length = width = 0;
break;
case etPERCENT:
@@ -616,7 +618,8 @@ void sqlite3VXPrintf(
break;
case etCHARX:
if( bArgList ){
c = (int)getIntArg(pArgList);
bufpt = getTextArg(pArgList);
c = bufpt ? bufpt[0] : 0;
}else{
c = va_arg(ap,int);
}