Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Fix for ticket #812 in the 2.8 branch. (CVS 1801) |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | version_2 |
Files: | files | file ages | folders |
SHA1: |
ea364dffc7dfe7533d6916d63db0a791 |
User & Date: | drh 2004-07-17 21:59:18.000 |
Context
2004-07-18
| ||
21:14 | Min() and max() ignore NULL values. Ticket #800. (CVS 1803) (check-in: 223521c04e user: drh tags: version_2) | |
2004-07-17
| ||
21:59 | Fix for ticket #812 in the 2.8 branch. (CVS 1801) (check-in: ea364dffc7 user: drh tags: version_2) | |
2004-07-15
| ||
13:37 | Make SrcList.nSrc a signed quantity to avoid problems on AIX. (CVS 1795) (check-in: 41526d098d user: drh tags: version_2) | |
Changes
Changes to src/printf.c.
︙ | ︙ | |||
223 224 225 226 227 228 229 230 231 232 233 234 235 236 | double rounder; /* Used for rounding floating point values */ etByte flag_dp; /* True if decimal point should be shown */ etByte flag_rtz; /* True if trailing zeros should be removed */ etByte flag_exp; /* True to force display of the exponent */ int nsd; /* Number of significant digits returned */ #endif count = length = 0; bufpt = 0; for(; (c=(*fmt))!=0; ++fmt){ if( c!='%' ){ int amt; bufpt = (char *)fmt; amt = 1; | > | 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 | double rounder; /* Used for rounding floating point values */ etByte flag_dp; /* True if decimal point should be shown */ etByte flag_rtz; /* True if trailing zeros should be removed */ etByte flag_exp; /* True to force display of the exponent */ int nsd; /* Number of significant digits returned */ #endif func(arg,"",0); count = length = 0; bufpt = 0; for(; (c=(*fmt))!=0; ++fmt){ if( c!='%' ){ int amt; bufpt = (char *)fmt; amt = 1; |
︙ | ︙ | |||
669 670 671 672 673 674 675 | memcpy(pM->zText, pM->zBase, pM->nChar); } }else{ pM->zText = pM->xRealloc(pM->zText, pM->nAlloc); } } } | | > | | > | 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 | memcpy(pM->zText, pM->zBase, pM->nChar); } }else{ pM->zText = pM->xRealloc(pM->zText, pM->nAlloc); } } } if( pM->zText ){ if( nNewChar>0 ){ memcpy(&pM->zText[pM->nChar], zNewText, nNewChar); pM->nChar += nNewChar; } pM->zText[pM->nChar] = 0; } } /* ** This routine is a wrapper around xprintf() that invokes mout() as ** the consumer. |
︙ | ︙ |