Overview
SHA1 Hash: | 9a8fdf7294825aaf24f0e415c443c709ef6d1177 |
---|---|
Date: | 2009-12-18 21:38:19 |
User: | drh |
Comment: | Change the name of the strnlen_() function in printf.c to StrNLen32(). |
Timelines: | ancestors | descendants | both | trunk |
Other Links: | files | ZIP archive | manifest |
Tags And Properties
- branch=trunk inherited from [a28c83647d]
- sym-trunk inherited from [a28c83647d]
Changes
[hide diffs]Modified src/printf.c from [e955d82165] to [8a4feba8cf].
@@ -153,11 +153,11 @@ ** Find the length of a string as long as that length does not ** exceed N bytes. If no zero terminator is seen in the first ** N bytes then return N. If N is negative, then this routine ** is an alias for strlen(). */ -static int strnlen_(const char *z, int N){ +static int StrNLen32(const char *z, int N){ int n = 0; while( (N-- != 0) && *(z++)!=0 ){ n++; } return n; } @@ -563,11 +563,11 @@ case etPATH: { int i; int limit = flag_alternateform ? va_arg(ap,int) : -1; char *e = va_arg(ap,char*); if( e==0 ){e="";} - length = strnlen_(e, limit); + length = StrNLen32(e, limit); zExtra = bufpt = malloc(length+1); for( i=0; i<length; i++ ){ if( e[i]=='\\' ){ bufpt[i]='/'; }else{ @@ -584,11 +584,11 @@ if( bufpt==0 ){ bufpt = ""; }else if( xtype==etDYNSTRING ){ zExtra = bufpt; } - length = strnlen_(bufpt, limit); + length = StrNLen32(bufpt, limit); if( precision>=0 && precision<length ) length = precision; break; } case etBLOB: { int limit = flag_alternateform ? va_arg(ap, int) : -1;