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: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f3d4cc01488e4b7acf05da02b487f93ae9744337;p=systemd util: fix handling of unknown escapes in cunescape() --- diff --git a/src/util.c b/src/util.c index 8360eb68..78eb7281 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; } }