aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--com32/hdt/hdt-dump.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/com32/hdt/hdt-dump.c b/com32/hdt/hdt-dump.c
index b1748c8e..7d608a0c 100644
--- a/com32/hdt/hdt-dump.c
+++ b/com32/hdt/hdt-dump.c
@@ -116,6 +116,12 @@ char *compute_filename(struct s_hardware *hardware)
/* Avoid space to make filename easier to manipulate */
chrreplace(filename, ' ', '_');
+ /* Avoid commas to make filename easier to manipulate */
+ chrreplace(filename, ',', '_');
+
+ /* Avoid pluses to make filename easier to manipulate */
+ chrreplace(filename, '+', '_');
+
return filename;
}