aboutsummaryrefslogtreecommitdiffstats
path: root/src/day.c
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2011-06-07 09:42:39 +0200
committerLukas Fleischer <calcurse@cryptocrack.de>2011-07-02 10:09:13 +0200
commite85501e5ef0d990539090f4d12dbb3eae487c971 (patch)
treef3acd91b9e7d076150e6efd3e181fb6ca0b38838 /src/day.c
parentc8029a5a1356ee7e684dc6dfe4001bcc739bc2a6 (diff)
downloadcalcurse-e85501e5ef0d990539090f4d12dbb3eae487c971.tar.gz
calcurse-e85501e5ef0d990539090f4d12dbb3eae487c971.zip
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>
Diffstat (limited to 'src/day.c')
-rw-r--r--src/day.c2
1 files changed, 1 insertions, 1 deletions
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)