eldbus: fix to dbus_name_to_c method

"-" in names should be converted to _
This commit is contained in:
Marcel Hollerbach 2021-07-14 15:20:42 +02:00
parent bad5440b2b
commit 34e4e110a2
1 changed files with 1 additions and 0 deletions

View File

@ -89,6 +89,7 @@ dbus_name_to_c(const char *dbus)
eina_strbuf_append_char(buffer, tolower(ret[i]));
}
free(ret);
eina_strbuf_replace_all(buffer, "-", "_");
ret = eina_strbuf_string_steal(buffer);
end:
free(str_cpy);