commit 354d9e6a09c67e85c1e9a0b32944e518efa09017
parent 8d7f4929153efa00fd954c06d20286ad3dce6ca0
Author: Claudio Alessi <smoppy@gmail.com>
Date: Wed, 7 Sep 2022 12:33:28 +0200
Prevent UI_BYTE to be followed by zero.
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/circo.c b/circo.c
@@ -86,6 +86,11 @@ enum { KeyFirst = -999, KeyUp, KeyDown, KeyRight, KeyLeft, KeyHome, KeyEnd, KeyD
enum { LineToOffset, OffsetToLine, TotalLines }; /* bufinfo() flags */
enum {
+ /* indexes must be non-zero or they will be interpreted as NUL byte
+ * when put after the UI_BYTE causing for example logging to break.
+ * This is workaround, a proper solution will be applied soon. */
+ ColorSkipZero,
+
NickNormal,
NickMention,
IRCMessage,