1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-04 01:48:54 +00:00
freebsd-ports/japanese/iv/files/patch-bw
Shigeyuki Fukushima d0094e951a Fix build error under 4-current and new egcs/C++ compiler.
PR:		ports/16024
Submitted by:	MIHIRA Yoshiro <sanpei@sanpei.org>
2000-01-11 15:52:35 +00:00

13 lines
441 B
Plaintext

--- src/lib/IV-X11/xfont.c.org Mon Jan 3 15:17:24 2000
+++ src/lib/IV-X11/xfont.c Mon Jan 3 15:21:01 2000
@@ -706,7 +706,8 @@
int sublength = strlen(substring);
int length = strlen(string) - sublength;
for (int i = 0; i <= length; ++i) {
- for (int j = 0; j < sublength; ++j) {
+ int j;
+ for (j = 0; j < sublength; ++j) {
if (string[i+j] != substring[j]) {
break;
}