From 1e4ab6d501ad4cb8c27a9bc41e70485eee4cdc0c Mon Sep 17 00:00:00 2001 From: luisllo Date: Sat, 20 Apr 2002 23:50:12 +0000 Subject: [PATCH] fixed bad implementation of CFontz_num() funcion --- server/drivers/CFontz.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/server/drivers/CFontz.c b/server/drivers/CFontz.c index a4a5b13..0f8c6f0 100644 --- a/server/drivers/CFontz.c +++ b/server/drivers/CFontz.c @@ -19,6 +19,7 @@ /*configfile support added by Rene Wagner (c) 2001*/ /*backlight support modified by Rene Wagner (c) 2001*/ /*block patch by Eddie Sheldrake (c) 2001 inserted by Rene Wagner*/ +/*big num patch by Luis Llorente (c) 2002*/ #include #include @@ -604,8 +605,8 @@ MODULE_EXPORT void CFontz_num (Driver * drvthis, int x, int num) { char out[5]; - snprintf (out, sizeof(out), "%c%c%c", 28, x, num); - write (fd, out, 3); + snprintf (out, sizeof(out), "%c%c%c%c", 28, 0, x-1, num+48); + write (fd, out, 4); } /////////////////////////////////////////////////////////////////