]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
basic/escape: octescape() doesn't really take 'bad' param
authorMike Yuan <me@yhndnzj.com>
Sat, 15 Feb 2025 22:35:54 +0000 (23:35 +0100)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 16 Feb 2025 03:37:10 +0000 (12:37 +0900)
src/basic/escape.c

index e50ae68cc602ba7fe46d0ded296d11a5e3fb7a1e..0ab99b5a0b1d7ce3077571c9ed070bec508f5819 100644 (file)
@@ -449,7 +449,7 @@ char* escape_non_printable_full(const char *str, size_t console_width, XEscapeFl
 char* octescape(const char *s, size_t len) {
         char *buf, *t;
 
-        /* Escapes all chars in bad, in addition to \ and " chars, in \nnn style escaping. */
+        /* Escapes \ and " chars, in \nnn style escaping. */
 
         assert(s || len == 0);