From 3ced4e8ea91a71fad7f97f41f8c1d96a04a5ff50 Mon Sep 17 00:00:00 2001 From: Christophe Grenier Date: Wed, 12 Oct 2016 20:32:35 +0200 Subject: [PATCH] fix a cppcheck style warning in fat_copy_file() --- src/fat_unformat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fat_unformat.c b/src/fat_unformat.c index fe7ae2c9..10b164e3 100644 --- a/src/fat_unformat.c +++ b/src/fat_unformat.c @@ -148,8 +148,8 @@ static int fat_copy_file(disk_t *disk, const partition_t *partition, const unsig unsigned char *buffer_file=(unsigned char *)MALLOC(cluster_size); cluster = file->st_ino; new_file=(char *)MALLOC(1024); - snprintf(new_file, 1024, "%s.%u/inode_%u", recup_dir, dir_num, inode_num); #ifdef HAVE_MKDIR + snprintf(new_file, 1024, "%s.%u/inode_%u", recup_dir, dir_num, inode_num); #ifdef __MINGW32__ mkdir(new_file); #else