From: Lennart Poettering Date: Fri, 1 Jun 2018 19:45:06 +0000 (+0200) Subject: escape: add an explanatory comment about buffer sizes X-Git-Tag: v239~167^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=76a359736f0f57d8a77b143fe682eceed51d9cda;p=thirdparty%2Fsystemd.git escape: add an explanatory comment about buffer sizes --- diff --git a/src/basic/escape.c b/src/basic/escape.c index 2e605b2ebe2..6734fba1f30 100644 --- a/src/basic/escape.c +++ b/src/basic/escape.c @@ -18,6 +18,8 @@ int cescape_char(char c, char *buf) { char *buf_old = buf; + /* Needs space for 4 characters in the buffer */ + switch (c) { case '\a':