fix checks in *_num() functions: only when/where necessary
This commit is contained in:
1 parent
66e38659cb
commit
65a473f2b7
12 files changed
+34
-27
No files matched your search
@@ -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