chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
923f8d7
)
util: handle \s escape as defined in the XDG spec properly in cunescape()
author
Lennart Poettering
<lennart@poettering.net>
Wed, 7 Jul 2010 20:28:51 +0000
(22:28 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Wed, 7 Jul 2010 20:28:51 +0000
(22:28 +0200)
src/util.c
patch
|
blob
|
history
diff --git
a/src/util.c
b/src/util.c
index 5103cc6ce24fefb5846c9bcb958cf58148d79378..a01229e659f3906e7191675963b5d0e7c3320534 100644
(file)
--- 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;