1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-08 14:02:16 +03:00

Fix a compile of harmless static analyzer warnings.

FossilOrigin-Name: 7e287f2055dcd82c92d1711aec97cb6552a354bb
This commit is contained in:
drh
2014-05-31 15:39:53 +00:00
parent 110e0ebe6d
commit 7ef4d1c403
4 changed files with 11 additions and 10 deletions

View File

@@ -370,7 +370,7 @@ int main(int argc, char **argv){
Keyword *p = &aKeywordTable[i];
p->len = (int)strlen(p->zName);
assert( p->len<sizeof(p->zOrigName) );
strcpy(p->zOrigName, p->zName);
memcpy(p->zOrigName, p->zName, p->len+1);
totalLen += p->len;
p->hash = (UpperToLower[(int)p->zName[0]]*4) ^
(UpperToLower[(int)p->zName[p->len-1]]*3) ^ p->len;