From e167fb86f6935c0fe989d6ccfbbc0acadba245a2 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 7 Jul 2010 22:28:51 +0200 Subject: [PATCH] util: handle \s escape as defined in the XDG spec properly in cunescape() --- src/util.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/util.c b/src/util.c index 5103cc6c..a01229e6 100644 --- a/src/util.c +++ b/src/util.c @@ -1182,6 +1182,11 @@ char *cunescape_length(const char *s, size_t length) { *(t++) = '\''; break; + case 's': + /* This is an extension of the XDG syntax files */ + *(t++) = ' '; + break; + case 'x': { /* hexadecimal encoding */ int a, b; -- 2.39.5