diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-07-07 22:28:51 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-07-07 22:28:51 +0200 |
commit | e167fb86f6935c0fe989d6ccfbbc0acadba245a2 (patch) | |
tree | 92d250a887235acf9727bc9571eedc9576123b86 /src | |
parent | 923f8d76dc1e14be0d8c969b1661d0279ddd97ba (diff) |
util: handle \s escape as defined in the XDG spec properly in cunescape()
Diffstat (limited to 'src')
-rw-r--r-- | src/util.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/util.c b/src/util.c index 5103cc6ce2..a01229e659 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; |