@@ -49,7 +49,7 @@ static void show_blob(const git_blob *blob)
4949static void show_tree (const git_tree * tree )
5050{
5151 size_t i , max_i = (int )git_tree_entrycount (tree );
52- char oidstr [GIT_OID_HEXSZ + 1 ];
52+ char oidstr [GIT_OID_SHA1_HEXSIZE + 1 ];
5353 const git_tree_entry * te ;
5454
5555 for (i = 0 ; i < max_i ; ++ i ) {
@@ -70,7 +70,7 @@ static void show_tree(const git_tree *tree)
7070static void show_commit (const git_commit * commit )
7171{
7272 unsigned int i , max_i ;
73- char oidstr [GIT_OID_HEXSZ + 1 ];
73+ char oidstr [GIT_OID_SHA1_HEXSIZE + 1 ];
7474
7575 git_oid_tostr (oidstr , sizeof (oidstr ), git_commit_tree_id (commit ));
7676 printf ("tree %s\n" , oidstr );
@@ -90,7 +90,7 @@ static void show_commit(const git_commit *commit)
9090
9191static void show_tag (const git_tag * tag )
9292{
93- char oidstr [GIT_OID_HEXSZ + 1 ];
93+ char oidstr [GIT_OID_SHA1_HEXSIZE + 1 ];
9494
9595 git_oid_tostr (oidstr , sizeof (oidstr ), git_tag_target_id (tag ));;
9696 printf ("object %s\n" , oidstr );
@@ -125,15 +125,15 @@ int lg2_cat_file(git_repository *repo, int argc, char *argv[])
125125{
126126 struct catfile_options o = { "." , NULL , 0 , 0 };
127127 git_object * obj = NULL ;
128- char oidstr [GIT_OID_HEXSZ + 1 ];
128+ char oidstr [GIT_OID_SHA1_HEXSIZE + 1 ];
129129
130130 parse_opts (& o , argc , argv );
131131
132132 check_lg2 (git_revparse_single (& obj , repo , o .rev ),
133133 "Could not resolve" , o .rev );
134134
135135 if (o .verbose ) {
136- char oidstr [GIT_OID_HEXSZ + 1 ];
136+ char oidstr [GIT_OID_SHA1_HEXSIZE + 1 ];
137137 git_oid_tostr (oidstr , sizeof (oidstr ), git_object_id (obj ));
138138
139139 printf ("%s %s\n--\n" ,
0 commit comments