Skip to content

Commit

Permalink
btree/bt_overflow.c: Use memcpy instead of memmove where possible.
Browse files Browse the repository at this point in the history
  • Loading branch information
pfalcon committed Jun 14, 2016
1 parent 66164eb commit 7b31cae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions btree/bt_overflow.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ __ovfl_get(t, p, ssz, buf, bufsz)
size_t nb, plen;
u_int32_t sz;

memmove(&pg, p, sizeof(pgno_t));
memmove(&sz, (char *)p + sizeof(pgno_t), sizeof(u_int32_t));
memcpy(&pg, p, sizeof(pgno_t));
memcpy(&sz, (char *)p + sizeof(pgno_t), sizeof(u_int32_t));
*ssz = sz;

#ifdef DEBUG
Expand Down

0 comments on commit 7b31cae

Please sign in to comment.