util: handle \s escape as defined in the XDG spec properly in cunescape()

This commit is contained in:
Lennart Poettering 2010-07-07 22:28:51 +02:00
parent 923f8d76dc
commit e167fb86f6

View file

@ -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;