commit 71fb54aab7ba6c41f2e52a38017002e1c468e9ad
parent 7e74cd6e62b1b7b3734be3659ab5ca7c8d5f167a
Author: Joris Vink <joris@coders.se>
Date: Thu, 21 Aug 2014 23:06:40 +0200
Replace - as well when building asset names
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/cli.c b/src/cli.c
@@ -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 = '_';
}