mirror of
https://github.com/qemu/qemu.git
synced 2024-11-24 11:23:43 +08:00
Fix parse_long_name, by Tristan Gingold.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4843 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
64eaabda73
commit
59fdb01812
@ -1440,6 +1440,7 @@ static int parse_long_name(long_file_name* lfn,
|
||||
lfn->sequence_number = pointer[0] & 0x3f;
|
||||
lfn->checksum = pointer[13];
|
||||
lfn->name[0] = 0;
|
||||
lfn->name[lfn->sequence_number * 13] = 0;
|
||||
} else if ((pointer[0] & 0x3f) != --lfn->sequence_number)
|
||||
return -1;
|
||||
else if (pointer[13] != lfn->checksum)
|
||||
|
Loading…
Reference in New Issue
Block a user