commit b3dc731fefb8046ff69090a0ccdb97bef71aaf65 from: Christian Weisgerber via: Thomas Adam date: Tue Sep 28 23:20:09 2021 UTC got_sha1_digest_to_str() writes to char * ok stsp commit - 1a670123c8051c6431567498c037c5df89fbcf51 commit + b3dc731fefb8046ff69090a0ccdb97bef71aaf65 blob - e173458388a0eed6a09cc84f91b9a2f7a3bd001b blob + e4bf144cf808626930be793cc67fe840eeb02861 --- lib/reference.c +++ lib/reference.c @@ -1333,7 +1333,7 @@ delete_packed_ref(struct got_reference *delref, struct } TAILQ_FOREACH(re, &refs, entry) { - uint8_t hex[SHA1_DIGEST_STRING_LENGTH]; + char hex[SHA1_DIGEST_STRING_LENGTH]; if (got_sha1_digest_to_str(re->ref->ref.ref.sha1, hex, sizeof(hex)) == NULL) {