util: fix handling of unknown escapes in cunescape()

This commit is contained in:
Lennart Poettering 2010-07-07 20:57:10 +02:00
parent 3dab29438c
commit f3d4cc0148

View file

@ -1212,7 +1212,7 @@ char *cunescape(const char *s) {
default:
/* Invalid escape code, let's take it literal then */
*(t++) = '\\';
*(t++) = 'f';
*(t++) = *f;
break;
}
}