Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ErwanAliasr1 committed Sep 4, 2015
1 parent 74b6a27 commit ac87e80
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions com32/hdt/hdt-dump.c
Expand Up @@ -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;
}

Expand Down

0 comments on commit ac87e80

Please sign in to comment.