commit d9e20cb75d62b8ae0fdc5be5140c9447b4080649 from: Omar Polo date: Thu Aug 01 15:02:01 2024 UTC delete trailing whitespaces commit - d0087ba4f4ce02c7aa2a0892c51bc00e4c0a4348 commit + d9e20cb75d62b8ae0fdc5be5140c9447b4080649 blob - 19ffa25a90493a0b5593265ee761f8231c2f40f6 blob + 324517a9b35f3478a580caf319629d5efd73a9ee --- lib/object_open_io.c +++ lib/object_open_io.c @@ -559,7 +559,7 @@ open_tree(struct got_tree_object **tree, for (i = 0; i < nentries; i++) { struct got_parsed_tree_entry *pe = &entries[i]; struct got_tree_entry *te = &(*tree)->entries[i]; - + if (strlcpy(te->name, pe->name, sizeof(te->name)) >= sizeof(te->name)) { err = got_error(GOT_ERR_NO_SPACE); @@ -639,7 +639,7 @@ read_packed_blob(uint8_t **outbuf, size_t *size, size_ if (blob_size <= GOT_DELTA_RESULT_SIZE_CACHED_MAX) { err = got_packfile_extract_object_to_mem(outbuf, size, - obj, pack); + obj, pack); } else { /* * XXX This uses 3 file extra descriptors for no good reason.