fix checks in *_num() functions: only when/where necessary
This commit is contained in:
@@ -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);
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user