]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
use size_t for lengths; GHPR681 from metsw24-max
authorDamien Miller <djm@mindrot.org>
Mon, 29 Jun 2026 07:16:55 +0000 (17:16 +1000)
committerDamien Miller <djm@mindrot.org>
Mon, 29 Jun 2026 07:45:14 +0000 (17:45 +1000)
ok dtucker

openbsd-compat/bsd-cygwin_util.c

index c2fd36feef9011ffad4f651d1effb4fb5c9437f6..c182fa44ad0d2cda2904b889f8b499a0ccf980a9 100644 (file)
@@ -222,7 +222,7 @@ cygwin_ug_match_pattern_list(const char *string, const char *pattern)
        char sub[1024];
        int negated;
        int got_positive;
-       u_int i, subi, len = strlen(pattern);
+       size_t i, subi, len = strlen(pattern);
 
        got_positive = 0;
        for (i = 0; i < len;) {