diff options
Diffstat (limited to 'block-vvfat.c')
-rw-r--r-- | block-vvfat.c | 1 |
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) |