mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-14 23:46:10 +00:00
d0094e951a
PR: ports/16024 Submitted by: MIHIRA Yoshiro <sanpei@sanpei.org>
13 lines
427 B
Plaintext
13 lines
427 B
Plaintext
--- src/bin/idraw/idcatalog.c.org Mon Jan 3 14:37:37 2000
|
|
+++ src/bin/idraw/idcatalog.c Mon Jan 3 14:36:51 2000
|
|
@@ -662,7 +662,8 @@
|
|
graylevel = CalcGrayLevel(data[0]);
|
|
}
|
|
} else if (graylevel == -1) {
|
|
- for (int i = 0; in >> _buf && i < patternHeight; i++) {
|
|
+ int i;
|
|
+ for (i = 0; in >> _buf && i < patternHeight; i++) {
|
|
if (_buf[0] == '>' || sscanf(_buf, "%x", &data[i]) != 1) {
|
|
break;
|
|
}
|