Commit Diff


commit - c3b78ecc086674ea6d62c9239aa96ee4f8bffe3a
commit + 68bf1b1e462cf3deb61b932f79be607fa0ab82c5
blob - 6ec3f47303410607073404400c35d463ac0a47fb
blob + c119834015679ff0eb90ddf044ef4dcec03eafb3
--- lib/object_parse.c
+++ lib/object_parse.c
@@ -477,7 +477,7 @@ parse_tree_entry(struct got_tree_entry **te, size_t *e
 		err = got_error(GOT_ERR_BAD_OBJ_DATA);
 		goto done;
 	}
-	buf += strlen(buf) + 1;
+	buf += *elen;
 	memcpy((*te)->id->sha1, buf, SHA1_DIGEST_LENGTH);
 	*elen += SHA1_DIGEST_LENGTH;
 done: