Commit Diff
--- lib/object.c +++ lib/object.c @@ -235,9 +235,8 @@ read_object_header(struct got_object **obj, struct got err = got_error(GOT_ERR_NO_MEM); goto done; } - buf += totlen; } - memcpy(buf, zb.outbuf, outlen); + memcpy(buf + totlen, zb.outbuf, outlen); totlen += outlen; i++; } while (strchr(zb.outbuf, '\0') == NULL);