Use constant for maximum UTF-8 character size
Introduce a UTF8_MAXLEN constant instead of using the literal value "6" at various places. Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
This commit is contained in:
@@ -374,7 +374,7 @@ display_todo_item (int incolor, char *msg, int prio, int note, int width, int y,
|
||||
{
|
||||
WINDOW *w;
|
||||
int ch_note;
|
||||
char buf[width * 6], priostr[2];
|
||||
char buf[width * UTF8_MAXLEN], priostr[2];
|
||||
int i;
|
||||
|
||||
w = win[TOD].p;
|
||||
|
||||
Reference in New Issue
Block a user