From 0d3ccf0b28edb9daa5313e27149ca746b4a88c04 Mon Sep 17 00:00:00 2001 From: Vicent Marti Date: Wed, 10 Apr 2013 16:41:05 +0200 Subject: [PATCH] examples: Don't print weird characters --- examples/general.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/examples/general.c b/examples/general.c index a65295f98..adc7ed8d2 100644 --- a/examples/general.c +++ b/examples/general.c @@ -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.