commit f63dc90df113ce7a79e0b477d5cbea9b61b5a460 from: Stefan Sperling date: Wed Mar 18 16:13:44 2020 UTC remove unnecessary & in read_packed_object() commit - 861f3006465e1fe55732efb1052b4e3ddd5474e3 commit + f63dc90df113ce7a79e0b477d5cbea9b61b5a460 blob - 913393e0538ea85ff30ac2493fa08b0469e9272b blob + e6920526a88b2db2979bc8cf680b47badcb88bbd --- libexec/got-fetch-pack/got-fetch-pack.c +++ libexec/got-fetch-pack/got-fetch-pack.c @@ -314,7 +314,9 @@ struct got_capability { }; static const struct got_capability got_capabilities[] = { { GOT_CAPA_AGENT, "got/" GOT_VERSION_STR }, + #if 0 { GOT_CAPA_OFS_DELTA, NULL }, + #endif { GOT_CAPA_SIDE_BAND_64K, NULL }, }; blob - db94f5f3aa5f181c888903b4d1029e4b4bf7db45 blob + 53e4b08d5ce99323c387425fc8a84c9d714f547e --- libexec/got-index-pack/got-index-pack.c +++ libexec/got-index-pack/got-index-pack.c @@ -208,7 +208,7 @@ read_packed_object(struct got_pack *pack, struct got_i break; case GOT_OBJ_TYPE_REF_DELTA: memset(obj->id.sha1, 0xff, SHA1_DIGEST_LENGTH); - n = read(pack->fd, &obj->delta.ref.ref_id.sha1, + n = read(pack->fd, obj->delta.ref.ref_id.sha1, SHA1_DIGEST_LENGTH); if (n == -1) { err = got_error_from_errno("read");