Replace - as well when building asset names

This commit is contained in:
Joris Vink 2014-08-21 23:06:40 +02:00
parent 7e74cd6e62
commit 71fb54aab7
1 changed files with 1 additions and 1 deletions

View File

@ -571,7 +571,7 @@ cli_build_asset(char *fpath, struct dirent *dp)
/* Replace dots, spaces, etc etc with underscores. */
for (p = name; *p != '\0'; p++) {
if (*p == '.' || isspace(*p))
if (*p == '.' || isspace(*p) || *p == '-')
*p = '_';
}