зеркало из https://github.com/microsoft/git.git
Merge branch 'nf/maint-fix-index-ext-len-on-be64' into maint
* nf/maint-fix-index-ext-len-on-be64: read_index(): fix reading extension size on BE 64-bit archs
This commit is contained in:
Коммит
0622f79d8e
|
@ -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,
|
||||
|
|
Загрузка…
Ссылка в новой задаче