[openssh-commits] [openssh] 02/02: fix incorrect string comparison length

git+noreply at mindrot.org git+noreply at mindrot.org
Wed Oct 14 15:12:11 AEDT 2026


This is an automated email from the git hooks/post-receive script.

djm pushed a commit to branch V_10_6
in repository openssh.

commit 50bc5a07f16c35cb344c8f09e78f81f7600bf99c
Author: Damien Miller <djm at mindrot.org>
AuthorDate: Wed Oct 14 15:11:05 2026 +1100

    fix incorrect string comparison length
---
 utf8.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/utf8.c b/utf8.c
index 61403ebaa..50d8b7d03 100644
--- a/utf8.c
+++ b/utf8.c
@@ -339,7 +339,7 @@ msetlocale(void)
 			continue;
 		if (strncasecmp(cp, "tr", 2) != 0 &&
 		    strncasecmp(cp, "crh", 3) != 0 &&
-		    strncasecmp(cp, "az", 3) != 0)
+		    strncasecmp(cp, "az", 2) != 0)
 			break;
 		/*
 		 * If we're in a UTF-8 locale then prefer to use

-- 
To stop receiving notification emails like this one, please contact
djm at mindrot.org.


More information about the openssh-commits mailing list