commit - c98b0f0b57cce101941efd993eac8b9e3be2a70a
commit + 0fca100c2fe2bfd8e88b22246068addedecd343d
blob - 0524ef11c75a6736de2b1e1866663ad0304d4b44
blob + 85d1234ffdb9c7fc4b46eafa3080973bcc7b3327
--- lib/privsep.c
+++ lib/privsep.c
err = got_error_from_errno("calloc");
break;
}
- memcpy(*ids, (uint8_t *)imsg.data + sizeof(idlist),
+ memcpy(*ids, (uint8_t *)imsg.data + sizeof(*idlist),
*nids * sizeof(**ids));
break;
case GOT_IMSG_OBJ_ID_LIST_DONE:
break;
}
*ndeltas = ideltas->ndeltas;
- memcpy(deltas, (uint8_t *)imsg.data + sizeof(ideltas),
+ memcpy(deltas, (uint8_t *)imsg.data + sizeof(*ideltas),
*ndeltas * sizeof(*deltas));
break;
case GOT_IMSG_DELTA_REUSE_DONE: