sha1_file.c::add_packed_git(): fix type mismatch.
authorJunio C Hamano <junkio@cox.net>
Tue, 15 Nov 2005 20:51:02 +0000 (12:51 -0800)
committerJunio C Hamano <junkio@cox.net>
Tue, 15 Nov 2005 23:08:28 +0000 (15:08 -0800)
An object name is 20-byte 'unsigned char', not 'char'.

Signed-off-by: Junio C Hamano <junkio@cox.net>
sha1_file.c

index cd814d7..82a0188 100644 (file)
@@ -424,7 +424,7 @@ struct packed_git *add_packed_git(char *path, int path_len, int local)
        struct packed_git *p;
        unsigned long idx_size;
        void *idx_map;
-       char sha1[20];
+       unsigned char sha1[20];
 
        if (check_packed_git_idx(path, &idx_size, &idx_map))
                return NULL;