diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2005-09-07 15:11:33 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2005-09-07 15:11:33 +0000 |
commit | 7f293b91b425b4dc1c0342f688a05ec403ea9e89 (patch) | |
tree | 503c849c7a95a53e63d0f24534e3bcc4bda63981 /ext/sqlite/libsqlite/src/printf.c | |
parent | caa9702a5a45b09c648a26e8651c5e0799e08acd (diff) | |
download | php-git-7f293b91b425b4dc1c0342f688a05ec403ea9e89.tar.gz |
MFH: Upgraded SQLite 2 library in ext/sqlite to 2.8.16
Diffstat (limited to 'ext/sqlite/libsqlite/src/printf.c')
-rw-r--r-- | ext/sqlite/libsqlite/src/printf.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/ext/sqlite/libsqlite/src/printf.c b/ext/sqlite/libsqlite/src/printf.c index 620578d76e..f867d62af6 100644 --- a/ext/sqlite/libsqlite/src/printf.c +++ b/ext/sqlite/libsqlite/src/printf.c @@ -227,6 +227,7 @@ static int vxprintf( int nsd; /* Number of significant digits returned */ #endif + func(arg,"",0); count = length = 0; bufpt = 0; for(; (c=(*fmt))!=0; ++fmt){ @@ -673,9 +674,11 @@ static void mout(void *arg, const char *zNewText, int nNewChar){ } } } - if( pM->zText && nNewChar>0 ){ - memcpy(&pM->zText[pM->nChar], zNewText, nNewChar); - pM->nChar += nNewChar; + if( pM->zText ){ + if( nNewChar>0 ){ + memcpy(&pM->zText[pM->nChar], zNewText, nNewChar); + pM->nChar += nNewChar; + } pM->zText[pM->nChar] = 0; } } |