aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorreinelt <>2006-07-14 20:15:11 +0000
committerreinelt <>2006-07-14 20:15:11 +0000
commit577c0d8af3cc3a68e3572b125ad6a525ae32b92e (patch)
tree1ffb7a818544a15c653a821a535f76238e335bf2
parent356606e9ec6eba20acfac7b1900d581e8a821907 (diff)
downloadlcd4linux-577c0d8af3cc3a68e3572b125ad6a525ae32b92e.tar.gz
[lcd4linux @ 2006-07-14 20:15:11 by reinelt]
buffer too small (thanks to anonymous)
-rw-r--r--drv_Crystalfontz.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/drv_Crystalfontz.c b/drv_Crystalfontz.c
index c8e4706..4585b49 100644
--- a/drv_Crystalfontz.c
+++ b/drv_Crystalfontz.c
@@ -1,4 +1,4 @@
-/* $Id: drv_Crystalfontz.c,v 1.42 2006/02/22 15:59:39 cmay Exp $
+/* $Id: drv_Crystalfontz.c,v 1.43 2006/07/14 20:15:11 reinelt Exp $
*
* new style driver for Crystalfontz display modules
*
@@ -23,6 +23,9 @@
*
*
* $Log: drv_Crystalfontz.c,v $
+ * Revision 1.43 2006/07/14 20:15:11 reinelt
+ * buffer too small (thanks to anonymous)
+ *
* Revision 1.42 2006/02/22 15:59:39 cmay
* removed KEYPADSIZE cruft per harbaum's suggestion
*
@@ -463,7 +466,8 @@ static void drv_CF_timer(void __attribute__ ((unused)) * notused)
static void drv_CF_send(const unsigned char cmd, const unsigned char len, const unsigned char *data)
{
- unsigned char buffer[22];
+ /* 1 cmd + 1 len + 22 payload + 2 crc = 26 */
+ unsigned char buffer[26];
unsigned short crc;
struct timeval now, end;
@@ -1112,7 +1116,7 @@ int drv_CF_init(const char *section, const int quiet)
WIDGET_CLASS wc;
int ret;
- info("%s: %s", Name, "$Revision: 1.42 $");
+ info("%s: %s", Name, "$Revision: 1.43 $");
/* start display */
if ((ret = drv_CF_start(section)) != 0) {
46b27Jonathan McCrohan391-301/+3983 2014-04-05Release 0+git20140326.cfc2975-1debian/0+git20140326.cfc2975-1Jonathan McCrohan1-2/+2 2014-04-05d/control: update Homepage (upstream has moved from Gitweb to cgit)Jonathan McCrohan2-1/+2 2014-04-05New Upstream Snapshot (commit cfc2975)Jonathan McCrohan1-0/+6 2014-04-05Imported Upstream version 0+git20140326.cfc2975upstream/0+git20140326.cfc2975Jonathan McCrohan118-656/+877 2014-01-16Release 0+git20140107.1850cf8-1debian/0+git20140107.1850cf8-1Jonathan McCrohan1-2/+2 2014-01-16Update Standards Version to 3.9.5Jonathan McCrohan2-1/+9 No changes required