summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/fit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/fit.c b/src/lib/fit.c
index da550723d2..090d34afd7 100644
--- a/src/lib/fit.c
+++ b/src/lib/fit.c
@@ -38,12 +38,12 @@ struct compat_string_entry {
struct list_node list_node;
};
-/* Convert string to lowercase and replace '_' with '-'. */
+/* Convert string to lowercase and replace '_' and spaces with '-'. */
static char *clean_compat_string(char *str)
{
for (size_t i = 0; i < strlen(str); i++) {
str[i] = tolower(str[i]);
- if (str[i] == '_')
+ if (str[i] == '_' || str[i] == ' ')
str[i] = '-';
}