projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
64eaabd
)
Fix parse_long_name, by Tristan Gingold.
author
ths
<ths@c046a42c-6fe2-441c-8c8c-71466251a162>
Thu, 3 Jul 2008 19:55:47 +0000
(19:55 +0000)
committer
ths
<ths@c046a42c-6fe2-441c-8c8c-71466251a162>
Thu, 3 Jul 2008 19:55:47 +0000
(19:55 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4843
c046a42c
-6fe2-441c-8c8c-
71466251a162
block-vvfat.c
patch
|
blob
|
history
diff --git
a/block-vvfat.c
b/block-vvfat.c
index 2dd1f2488c64aa7bfbc413785f6e7de5b7c408e1..08d426bbd565406d9e73f18bb279a2ecd525b6a9 100644
(file)
--- a/
block-vvfat.c
+++ b/
block-vvfat.c
@@
-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)