examples: Don't print weird characters

This commit is contained in:
Vicent Marti 2013-04-10 16:41:05 +02:00
parent e9b7ff602b
commit 0d3ccf0b28

View File

@ -76,8 +76,7 @@ int main (int argc, char** argv)
git_oid_fromstr(&oid, hex); git_oid_fromstr(&oid, hex);
// Once we've converted the string into the oid value, we can get the raw // Once we've converted the string into the oid value, we can get the raw
// value of the SHA. // value of the SHA by accessing `oid.id`
printf("Raw 20 bytes: [%.20s]\n", (&oid)->id);
// Next we will convert the 20 byte raw SHA1 value to a human readable 40 // Next we will convert the 20 byte raw SHA1 value to a human readable 40
// char hex value. // char hex value.