Skip to content

Commit 8841e85

Browse files
authored
Merge pull request #226 from elemoine/memcpy
Fix memcpy size in pc_patch_wkb_set_int32
2 parents 872f0b6 + 9a29931 commit 8841e85

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pgsql/pc_pgsql.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -860,7 +860,7 @@ pc_patch_wkb_set_double(uint8_t *wkb, double d)
860860
static uint8_t *
861861
pc_patch_wkb_set_int32(uint8_t *wkb, uint32_t i)
862862
{
863-
memcpy(wkb, &i, 8);
863+
memcpy(wkb, &i, 4);
864864
wkb += 4;
865865
return wkb;
866866
}

0 commit comments

Comments
 (0)