fix checks in *_num() functions: only when/where necessary

This commit is contained in:
marschap
2006-04-11 20:57:15 +00:00
parent 66e38659cb
commit 65a473f2b7
12 changed files with 34 additions and 27 deletions
+3
View File
@@ -884,6 +884,9 @@ CFontz633_num (Driver *drvthis, int x, int num)
PrivateData *p = drvthis->private_data;
unsigned char out[5];
if ((x <= 0) || (x > p->width))
return;
snprintf(out, sizeof(out), "%c%c%c", 28, x, num);
write(p->fd, out, 3);
*/