We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd5a440 commit 008ab3cCopy full SHA for 008ab3c
drivers/accessibility/speakup/main.c
@@ -574,7 +574,7 @@ static u_long get_word(struct vc_data *vc)
574
}
575
attr_ch = get_char(vc, (u_short *)tmp_pos, &spk_attr);
576
buf[cnt++] = attr_ch;
577
- while (tmpx < vc->vc_cols - 1 && cnt < sizeof(buf) - 1) {
+ while (tmpx < vc->vc_cols - 1 && cnt < ARRAY_SIZE(buf) - 1) {
578
tmp_pos += 2;
579
tmpx++;
580
ch = get_char(vc, (u_short *)tmp_pos, &temp);
0 commit comments