diff options
author | mistachkin <mistachkin@noemail.net> | 2019-03-20 05:45:03 +0000 |
---|---|---|
committer | mistachkin <mistachkin@noemail.net> | 2019-03-20 05:45:03 +0000 |
commit | 065f3bf4f2b3dbef086a32a520e4f15e47c164e4 (patch) | |
tree | 53eb717905792bf8900fea0671616fbc9ace3803 /ext/misc/fuzzer.c | |
parent | d0f820a7e61a22197d9fed275973c3e425aa7927 (diff) | |
download | sqlite-065f3bf4f2b3dbef086a32a520e4f15e47c164e4.tar.gz sqlite-065f3bf4f2b3dbef086a32a520e4f15e47c164e4.zip |
Fix various harmless compiler warnings seen with MSVC.
FossilOrigin-Name: 1c0fe5b5763fe5cbace9773dcdab742e126d0bd035ab13d61f9d134afa0afc0c
Diffstat (limited to 'ext/misc/fuzzer.c')
-rw-r--r-- | ext/misc/fuzzer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/misc/fuzzer.c b/ext/misc/fuzzer.c index 353b7ecd5..50445f563 100644 --- a/ext/misc/fuzzer.c +++ b/ext/misc/fuzzer.c @@ -456,7 +456,7 @@ static char *fuzzerDequote(const char *zIn){ char q = zIn[0]; /* Quote character (if any ) */ if( q!='[' && q!= '\'' && q!='"' && q!='`' ){ - memcpy(zOut, zIn, nIn+1); + memcpy(zOut, zIn, (size_t)(nIn+1)); }else{ int iOut = 0; /* Index of next byte to write to output */ int iIn; /* Index of next byte to read from input */ @@ -524,7 +524,7 @@ static int fuzzerConnect( memset(pNew, 0, sizeof(*pNew)); pNew->zClassName = (char*)&pNew[1]; - memcpy(pNew->zClassName, zModule, nModule+1); + memcpy(pNew->zClassName, zModule, (size_t)(nModule+1)); zTab = fuzzerDequote(argv[3]); if( zTab==0 ){ |