summaryrefslogtreecommitdiff
path: root/unit-name.c
diff options
context:
space:
mode:
Diffstat (limited to 'unit-name.c')
-rw-r--r--unit-name.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/unit-name.c b/unit-name.c
index eb2f704e2f..5053d30f29 100644
--- a/unit-name.c
+++ b/unit-name.c
@@ -207,8 +207,8 @@ static char* do_escape(const char *f, char *t) {
for (; *f; f++) {
if (*f == '/')
- *(t++) = '.';
- else if (*f == '.' || *f == '\\' || !strchr(VALID_CHARS, *f)) {
+ *(t++) = '-';
+ else if (*f == '-' || *f == '\\' || !strchr(VALID_CHARS, *f)) {
*(t++) = '\\';
*(t++) = 'x';
*(t++) = hexchar(*f > 4);
@@ -286,7 +286,7 @@ char *unit_name_unescape(const char *f) {
return NULL;
for (t = r; *f; f++) {
- if (*f == '.')
+ if (*f == '-')
*(t++) = '/';
else if (*f == '\\') {
int a, b;