summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/filegen.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/filegen.c b/src/filegen.c
index 9568543..f48f21d 100644
--- a/src/filegen.c
+++ b/src/filegen.c
@@ -429,7 +429,7 @@ int file_rename(file_recovery_t *file_recovery, const void *buffer, const int bu
bad++;
break;
default:
- if(isprint(*src) && !isspace(*src))
+ if(isprint(*src) && !isspace(*src) && !ispunct(*src) && !iscntrl(*src))
{
*dst++ = *src;
ok++;
@@ -542,7 +542,7 @@ int file_rename_unicode(file_recovery_t *file_recovery, const void *buffer, cons
bad++;
break;
default:
- if(isprint(*src) && !isspace(*src))
+ if(isprint(*src) && !isspace(*src) && !ispunct(*src) && !iscntrl(*src))
{
*dst++ = *src;
ok++;