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/todo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/todo.c') diff --git a/src/todo.c b/src/todo.c index 43d5ad5..a6b5687 100644 --- a/src/todo.c +++ b/src/todo.c @@ -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; -- cgit v1.2.3-54-g00ecf