From 220dd0a7835c5a7ecfd318b767af9b694bbc193d Mon Sep 17 00:00:00 2001 From: marschap Date: Sun, 26 Nov 2006 19:05:37 +0000 Subject: [PATCH] get rid of "magic" constant: use dynamically allocated string --- server/drivers/CFontzPacket.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/drivers/CFontzPacket.c b/server/drivers/CFontzPacket.c index 0531f6e..a822f54 100644 --- a/server/drivers/CFontzPacket.c +++ b/server/drivers/CFontzPacket.c @@ -530,7 +530,7 @@ CFontzPacket_flush (Driver *drvthis) /* there are differences, ... */ if (length > 0) { - unsigned char out[23]; + unsigned char out[length + 3]; /* ... send then to the LCD */ out[0] = j; // column