summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2013-04-10 16:41:05 +0200
committerVicent Marti <tanoku@gmail.com>2013-04-10 16:41:05 +0200
commit0d3ccf0b28edb9daa5313e27149ca746b4a88c04 (patch)
treed2e6c85c4dc6c973a9ef18f986cfcf9c1ae18f28
parente9b7ff602b7f4b9a7de92eb241bc0578a520dda2 (diff)
downloadlibgit2-0d3ccf0b28edb9daa5313e27149ca746b4a88c04.tar.gz
examples: Don't print weird characters
-rw-r--r--examples/general.c3
1 files changed, 1 insertions, 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.