From e85501e5ef0d990539090f4d12dbb3eae487c971 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Tue, 7 Jun 2011 09:42:39 +0200 Subject: 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 --- src/day.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/day.c') diff --git a/src/day.c b/src/day.c index 2d0737e..7ad0b27 100644 --- a/src/day.c +++ b/src/day.c @@ -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) -- cgit v1.2.3-54-g00ecf