commit - 31d32634997bd59472b751d9fea87298edee75be
commit + 623d55de6ed896de2a4767bd1866fa78326e08c4
blob - c1fb41744c3c30d9161cbdf76486db46fc6fddff
blob + cf4eba7c1704b303aff803e26b76d4e0cd628f9c
--- 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: