mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-31 21:57:12 +00:00
bf57334ca0
- The maintainer is now a committer. Reviewed by: Kim Culhan <kimc@w8hd.org>
15 lines
554 B
Plaintext
15 lines
554 B
Plaintext
--- 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;
|
|
}
|