X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Funit-name.c;h=868d13e4c99ac6dcc7fe83638221630211c2c551;hp=2e2948ab1d1f13ed701ee4e793ef5f1e0b90347b;hb=df37291a5198818e5bb1d11c34ba134aa3d79d96;hpb=a1102c1f63dfee7f3649c86c5d8df8faba541123 diff --git a/src/unit-name.c b/src/unit-name.c index 2e2948ab1..868d13e4c 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;