summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-07-07 22:28:51 +0200
committerLennart Poettering <lennart@poettering.net>2010-07-07 22:28:51 +0200
commite167fb86f6935c0fe989d6ccfbbc0acadba245a2 (patch)
tree92d250a887235acf9727bc9571eedc9576123b86 /src
parent923f8d76dc1e14be0d8c969b1661d0279ddd97ba (diff)
util: handle \s escape as defined in the XDG spec properly in cunescape()
Diffstat (limited to 'src')
-rw-r--r--src/util.c5
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;