aboutsummaryrefslogtreecommitdiffstats
path: root/com32/hdt
diff options
context:
space:
mode:
authorErwan Velu <erwanaliasr1@gmail.com>2015-08-19 07:12:10 +0200
committerErwan Velu <erwanaliasr1@gmail.com>2015-09-04 17:57:52 +0200
commitac87e802d87134170faa323085b2165599cdad01 (patch)
treecd9802c9d64dac926bb8115936d14079ab120a2c /com32/hdt
parent74b6a2777e6351edc85aac21a69dd51be5e1e9aa (diff)
downloadsyslinux-ac87e802d87134170faa323085b2165599cdad01.tar.gz
syslinux-ac87e802d87134170faa323085b2165599cdad01.tar.xz
syslinux-ac87e802d87134170faa323085b2165599cdad01.zip
hdt: Removing commas and plus signs from filename
When uploading the dump file to a tftp server, removing the plus & comma sign from the filename could make the file easier to manipulate later.
Diffstat (limited to 'com32/hdt')
-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;
}