mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-06 01:57:40 +00:00
13 lines
441 B
Plaintext
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;
|
||
|
}
|