Skip to content

Commit

Permalink
Merge branch 'maint'
Browse files Browse the repository at this point in the history
* maint:
  read_index(): fix reading extension size on BE 64-bit archs
  • Loading branch information
Junio C Hamano committed Dec 28, 2009
2 parents 1d85dd6 + 0622f79 commit 67834b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion read-cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -1322,7 +1322,7 @@ int read_index_from(struct index_state *istate, const char *path)
* extension name (4-byte) and section length
* in 4-byte network byte order.
*/
unsigned long extsize;
uint32_t extsize;
memcpy(&extsize, (char *)mmap + src_offset + 4, 4);
extsize = ntohl(extsize);
if (read_index_extension(istate,
Expand Down

0 comments on commit 67834b9

Please sign in to comment.