[Core] switch_mprintf: Increase the size of loop variables in the printf() implementation. Add unit-tests disabled by default.

This commit is contained in:
Andrey Volk
2022-12-09 17:42:30 +03:00
parent ec32dc300f
commit f71a56022a
2 changed files with 46 additions and 2 deletions
+2 -2
View File
@@ -680,8 +680,8 @@ static int vxprintf(void (*func) (void *, const char *, int), /* Consumer of tex
case etSQLESCAPE2:
case etSQLESCAPE4:
case etSQLESCAPE3:{
int i, j, n, ch, isnull;
int needQuote;
size_t i, j, n, ch;
int needQuote, isnull;
char *escarg = va_arg(ap, char *);
isnull = escarg == 0;
if (isnull)