chiark / gitweb /
util: fix handling of unknown escapes in cunescape()
authorLennart Poettering <lennart@poettering.net>
Wed, 7 Jul 2010 18:57:10 +0000 (20:57 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 7 Jul 2010 18:57:10 +0000 (20:57 +0200)
src/util.c

index 8360eb6..78eb728 100644 (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;
                 }
         }