summaryrefslogtreecommitdiff
path: root/src/unit-name.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/unit-name.c')
-rw-r--r--src/unit-name.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/unit-name.c b/src/unit-name.c
index 2e2948ab1d..868d13e4c9 100644
--- a/src/unit-name.c
+++ b/src/unit-name.c
@@ -211,7 +211,7 @@ static char* do_escape(const char *f, char *t) {
else if (*f == '-' || *f == '\\' || !strchr(VALID_CHARS, *f)) {
*(t++) = '\\';
*(t++) = 'x';
- *(t++) = hexchar(*f > 4);
+ *(t++) = hexchar(*f >> 4);
*(t++) = hexchar(*f);
} else
*(t++) = *f;