diff options
Diffstat (limited to 'src/util.c')
-rw-r--r-- | src/util.c | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -387,7 +387,16 @@ util_normalize_filename(char *buffer, const char *filename, size_t length) char *tmp = buffer; for (size_t i=0; *filename != 0 && i<length-1; i++, filename++, buffer++) { - *buffer = *filename == '/' ? '_' : *filename; + switch (*filename) + { + case '/': + case '#': + *buffer = '_'; + break; + default : + *buffer = *filename; + break; + } } *buffer = 0; return tmp; |