diff options
author | drh <drh@noemail.net> | 2015-06-30 03:18:33 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2015-06-30 03:18:33 +0000 |
commit | 1116bf13597165d8fa8f5558e6b8b6952da61dfd (patch) | |
tree | f91aa26af81dd5aeaf6da28a602c1dd7f579c9f2 /src/util.c | |
parent | 597d2b6412a38ca8ce0312579d0acaf4035aaee9 (diff) | |
download | sqlite-1116bf13597165d8fa8f5558e6b8b6952da61dfd.tar.gz sqlite-1116bf13597165d8fa8f5558e6b8b6952da61dfd.zip |
Implement sqlite3Strlen30() using strlen() from the C library.
FossilOrigin-Name: 8001aa52bd12f900092387fe3571463e89efd977
Diffstat (limited to 'src/util.c')
-rw-r--r-- | src/util.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/util.c b/src/util.c index 0bc1eeacf..8fdaf2678 100644 --- a/src/util.c +++ b/src/util.c @@ -105,10 +105,8 @@ int sqlite3IsNaN(double x){ ** than 1GiB) the value returned might be less than the true string length. */ int sqlite3Strlen30(const char *z){ - const char *z2 = z; if( z==0 ) return 0; - while( *z2 ){ z2++; } - return 0x3fffffff & (int)(z2 - z); + return 0x3fffffff & (int)strlen(z); } /* |