summaryrefslogtreecommitdiffstats
path: root/src/fat_dir.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2015-04-14 07:53:39 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2015-04-14 07:53:39 +0200
commit234bdc8d0764a9c3d580616c7e973b2ae9141538 (patch)
tree69df54ba412668224781e860cb83eafc2fbc587f /src/fat_dir.c
parentdd4be61639d1eadd289ff8926fa3dae10308baec (diff)
FAT listing: fix when non utf-8 char is detected in a deleted filename
Diffstat (limited to 'src/fat_dir.c')
-rw-r--r--src/fat_dir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fat_dir.c b/src/fat_dir.c
index cc14374..83fa0ca 100644
--- a/src/fat_dir.c
+++ b/src/fat_dir.c
@@ -272,7 +272,7 @@ RecEnd:
#endif
if(sizec <= 0)
{
- new_file->name[o]=(char) unicode[i];
+ new_file->name[o++]=(char) unicode[i];
utf8=0;
}
else