[fix] memcpy in geohash, closes #707
This commit is contained in:
@@ -391,9 +391,7 @@ static int uint8s_plus_minus(uint8_t *src, uint8_t *dst, size_t length, int plus
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
unsigned int cell = (length-1)/8;
|
unsigned int cell = (length-1)/8;
|
||||||
for (unsigned int i=0; i<cell; i++) {
|
memcpy(dst, src, cell);
|
||||||
dst[cell] = src[cell];
|
|
||||||
}
|
|
||||||
uint8_t cell_offset = (8-length%8)%8;
|
uint8_t cell_offset = (8-length%8)%8;
|
||||||
int up = 1;
|
int up = 1;
|
||||||
while (up) {
|
while (up) {
|
||||||
|
|||||||
Reference in New Issue
Block a user