diff options
author | Erwan Velu <erwanaliasr1@gmail.com> | 2015-08-19 07:12:10 +0200 |
---|---|---|
committer | Erwan Velu <erwanaliasr1@gmail.com> | 2015-09-04 17:57:52 +0200 |
commit | ac87e802d87134170faa323085b2165599cdad01 (patch) | |
tree | cd9802c9d64dac926bb8115936d14079ab120a2c | |
parent | 74b6a2777e6351edc85aac21a69dd51be5e1e9aa (diff) | |
download | syslinux-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.
-rw-r--r-- | com32/hdt/hdt-dump.c | 6 |
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; } |