From: Lennart Poettering Date: Wed, 7 Jul 2010 20:28:51 +0000 (+0200) Subject: util: handle \s escape as defined in the XDG spec properly in cunescape() X-Git-Tag: v2~30 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=e167fb86f6935c0fe989d6ccfbbc0acadba245a2;p=elogind.git util: handle \s escape as defined in the XDG spec properly in cunescape() --- diff --git a/src/util.c b/src/util.c index 5103cc6ce..a01229e65 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;