1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-11-06 09:13:01 +01:00

Merge branch 'maint'

* maint:
  read_index(): fix reading extension size on BE 64-bit archs
This commit is contained in:
Junio C Hamano 2009-12-27 22:59:55 -08:00
commit 67834b9240

View file

@ -1322,7 +1322,7 @@ int read_index_from(struct index_state *istate, const char *path)
* extension name (4-byte) and section length * extension name (4-byte) and section length
* in 4-byte network byte order. * in 4-byte network byte order.
*/ */
unsigned long extsize; uint32_t extsize;
memcpy(&extsize, (char *)mmap + src_offset + 4, 4); memcpy(&extsize, (char *)mmap + src_offset + 4, 4);
extsize = ntohl(extsize); extsize = ntohl(extsize);
if (read_index_extension(istate, if (read_index_extension(istate,