summaryrefslogtreecommitdiffstats
path: root/src/fat_dir.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2011-12-28 07:53:57 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2011-12-28 07:53:57 +0100
commitdd6f53eaa254d6710d4d477eeeda43139a57c337 (patch)
tree9f6ef0b8d9484cc46660e175a40092e25a7b9939 /src/fat_dir.c
parent556e30ab35199ecb982a2deea9242d686e25fa1b (diff)
Check wctomb() return value
Diffstat (limited to 'src/fat_dir.c')
-rw-r--r--src/fat_dir.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fat_dir.c b/src/fat_dir.c
index 35fb07d..43aa376 100644
--- a/src/fat_dir.c
+++ b/src/fat_dir.c
@@ -83,7 +83,8 @@ file_data_t *dir_fat_aux(const unsigned char*buffer, const unsigned int size, co
unsigned int inode;
int utf8=1;
#ifdef HAVE_WCTOMB
- wctomb(NULL, 0);
+ if(wctomb(NULL, 0) < 0)
+ utf8=0;
#endif
GetNew:
status=0;