summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-07-07 20:57:10 +0200
committerLennart Poettering <lennart@poettering.net>2010-07-07 20:57:10 +0200
commitf3d4cc01488e4b7acf05da02b487f93ae9744337 (patch)
treed68f4a846ce8e45b1bd068842fc94e785cbed013 /src
parent3dab29438c431f8e068c079af13ed26a81e563d3 (diff)
util: fix handling of unknown escapes in cunescape()
Diffstat (limited to 'src')
-rw-r--r--src/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.c b/src/util.c
index 8360eb68fd..78eb728121 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;
}
}