summaryrefslogtreecommitdiff
path: root/block-vvfat.c
diff options
context:
space:
mode:
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2008-07-03 19:55:47 +0000
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2008-07-03 19:55:47 +0000
commit59fdb018127f7bf5ca259a89e465895d0256a8cf (patch)
tree9e0be3b0d18a6c51ab6393494dac16bbf9096ee4 /block-vvfat.c
parent64eaabda73382b5b826dcd426200edc7c6c47d8b (diff)
Fix parse_long_name, by Tristan Gingold.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4843 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'block-vvfat.c')
-rw-r--r--block-vvfat.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/block-vvfat.c b/block-vvfat.c
index 2dd1f2488c..08d426bbd5 100644
--- 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)