Skip to content

Commit 26417fc

Browse files
authored
Fixing width (size_t, not unsigned short int)
CodeQL
1 parent d90b0d9 commit 26417fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gurich.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ static void cups_filter_print(struct gurich_usb * g, char ** argv)
138138
{
139139
ps = realloc(ps, pslen += psread);
140140
gurich_alloc_check(ps);
141-
for (unsigned short int r = 0; r < psread; ++r, ++psbeg) {
141+
for (size_t r = 0; r < psread; ++r, ++psbeg) {
142142
ps[psbeg] = psbuf[r];
143143
}
144144
}

0 commit comments

Comments
 (0)