summaryrefslogtreecommitdiffstats
path: root/src/file_r3d.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2009-08-18 08:59:22 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2009-08-18 08:59:22 +0200
commit3d99713d6a71d907b58996f3e19d5e1349b0f327 (patch)
treef25aba11cca5840b461059805c0a86827f5c7ace /src/file_r3d.c
parent46de1359fd7b90be1a3380081da0e798b5c9e8be (diff)
file_rename() and file_rename_unicode() new prototype
Diffstat (limited to 'src/file_r3d.c')
-rw-r--r--src/file_r3d.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/file_r3d.c b/src/file_r3d.c
index 1ba402c..e5b85bb 100644
--- a/src/file_r3d.c
+++ b/src/file_r3d.c
@@ -30,7 +30,6 @@
#include <ctype.h>
#include "types.h"
#include "filegen.h"
-#include "log.h"
static void register_header_check_r3d(file_stat_t *file_stat);
static int header_check_r3d(const unsigned char *buffer, const unsigned int buffer_size, const unsigned int safe_header_only, const file_recovery_t *file_recovery, file_recovery_t *file_recovery_new);
@@ -82,9 +81,8 @@ static void file_rename_r3d(const char *old_filename)
return;
for(i=0x43; i< buffer_size && buffer[i]!=0 && buffer[i]!='.'; i++)
{
- log_info("%c", buffer[i]);
if(!isalnum(buffer[i]) && buffer[i]!='_')
return ;
}
- file_rename(old_filename, buffer, i, 0x43);
+ file_rename(old_filename, buffer, i, 0x43, NULL, 1);
}