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:
Lukas Fleischer
2011-06-07 09:42:39 +02:00
parent c8029a5a13
commit e85501e5ef
4 changed files with 6 additions and 4 deletions

View File

@@ -352,7 +352,7 @@ display_item (int incolor, char *msg, int recur, int note, int width, int y,
{
WINDOW *win;
int ch_recur, ch_note;
char buf[width * 6];
char buf[width * UTF8_MAXLEN];
int i;
if (width <= 0)