From: Lennart Poettering Date: Fri, 1 Jun 2018 19:45:06 +0000 (+0200) Subject: escape: add an explanatory comment about buffer sizes X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=5acc15fbb0ce306d4a2f4e0d47f4c5d5ac433b08;p=elogind.git escape: add an explanatory comment about buffer sizes --- diff --git a/src/basic/escape.c b/src/basic/escape.c index dc302364e..98b4bdf18 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':