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:
0ebd32d
)
escape: add an explanatory comment about buffer sizes
author
Lennart Poettering
<lennart@poettering.net>
Fri, 1 Jun 2018 19:45:06 +0000
(21:45 +0200)
committer
Sven Eden
<yamakuzure@gmx.net>
Fri, 24 Aug 2018 14:47:08 +0000
(16:47 +0200)
src/basic/escape.c
patch
|
blob
|
history
diff --git
a/src/basic/escape.c
b/src/basic/escape.c
index dc302364e4c4471d5b40709b862a3281f646eb81..98b4bdf18c37d49976292a54112eb50d3557aa63 100644
(file)
--- 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':