Skip to content

Commit

Permalink
Merge branch 'nf/maint-fix-index-ext-len-on-be64' into maint
Browse files Browse the repository at this point in the history
* nf/maint-fix-index-ext-len-on-be64:
  read_index(): fix reading extension size on BE 64-bit archs
  • Loading branch information
Junio C Hamano committed Dec 27, 2009
2 parents 21a0d9b + 07cc8ec commit 0622f79
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 0622f79

Please sign in to comment.