chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3dab294
)
util: fix handling of unknown escapes in cunescape()
author
Lennart Poettering
<lennart@poettering.net>
Wed, 7 Jul 2010 18:57:10 +0000
(20:57 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Wed, 7 Jul 2010 18:57:10 +0000
(20:57 +0200)
src/util.c
patch
|
blob
|
history
diff --git
a/src/util.c
b/src/util.c
index 8360eb68fd435244a976981c9a4e15a5618053df..78eb728121a3423aeb651c8682fa5a8a52728b18 100644
(file)
--- 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;
}
}