blob: 81a82ad4ac9efed6d7fc414eca97f4de67b51362 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
--- src/lib/IV-X11/xfont.c.org Thu Dec 9 14:17:55 1993
+++ src/lib/IV-X11/xfont.c Sun Jan 23 18:53:44 2000
@@ -538,8 +538,9 @@
static boolean contains(const char* string, const char* substring) {
int sublength = strlen(substring);
int length = strlen(string) - sublength;
- for (int i = 0; i <= length; ++i) {
- for (int j = 0; j < sublength; ++j) {
+ int i, j;
+ for (i = 0; i <= length; ++i) {
+ for (j = 0; j < sublength; ++j) {
if (string[i+j] != substring[j]) {
break;
}
|