aboutsummaryrefslogtreecommitdiff
path: root/src/printf.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2017-08-19 20:38:18 +0000
committerdrh <drh@noemail.net>2017-08-19 20:38:18 +0000
commitc84ddf14c5c65007b739d4368cdde7fb24eaed78 (patch)
treec53e73a3c554b445622261b71f85780d87acf16f /src/printf.c
parent251866d07c0b76e4fd0d762febe3f37a559f961a (diff)
downloadsqlite-c84ddf14c5c65007b739d4368cdde7fb24eaed78.tar.gz
sqlite-c84ddf14c5c65007b739d4368cdde7fb24eaed78.zip
Space and size optimization to the printf implementation.
FossilOrigin-Name: d01d2cffefd1cdb52b386e4983599534c0fbbe6aebda186db53200e4b2283f0a
Diffstat (limited to 'src/printf.c')
-rw-r--r--src/printf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/printf.c b/src/printf.c
index 49b13cc4f..9427844e0 100644
--- a/src/printf.c
+++ b/src/printf.c
@@ -656,7 +656,7 @@ void sqlite3VXPrintf(
if( precision>=0 ){
for(length=0; length<precision && bufpt[length]; length++){}
}else{
- length = sqlite3Strlen30(bufpt);
+ length = 0x7fffffff & (int)strlen(bufpt);
}
break;
case etSQLESCAPE: /* Escape ' characters */