mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-02 04:47:51 +00:00
examples: Don't print weird characters
This commit is contained in:
parent
e9b7ff602b
commit
0d3ccf0b28
@ -76,8 +76,7 @@ int main (int argc, char** argv)
|
||||
git_oid_fromstr(&oid, hex);
|
||||
|
||||
// Once we've converted the string into the oid value, we can get the raw
|
||||
// value of the SHA.
|
||||
printf("Raw 20 bytes: [%.20s]\n", (&oid)->id);
|
||||
// value of the SHA by accessing `oid.id`
|
||||
|
||||
// Next we will convert the 20 byte raw SHA1 value to a human readable 40
|
||||
// char hex value.
|
||||
|
Loading…
Reference in New Issue
Block a user