1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-31 21:57:12 +00:00
freebsd-ports/x11-toolkits/iv/files/patch-bq

15 lines
554 B
Plaintext
Raw Normal View History

--- 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;
}