From: Lennart Poettering Date: Wed, 7 Jul 2010 18:57:10 +0000 (+0200) Subject: util: fix handling of unknown escapes in cunescape() X-Git-Tag: v2~37 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=f3d4cc01488e4b7acf05da02b487f93ae9744337;ds=sidebyside util: fix handling of unknown escapes in cunescape() --- diff --git a/src/util.c b/src/util.c index 8360eb68f..78eb72812 100644 --- a/src/util.c +++ b/src/util.c @@ -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; } }