From ac87e802d87134170faa323085b2165599cdad01 Mon Sep 17 00:00:00 2001 From: Erwan Velu Date: Wed, 19 Aug 2015 07:12:10 +0200 Subject: 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. --- com32/hdt/hdt-dump.c | 6 ++++++ 1 file changed, 6 insertions(+) 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; } -- cgit