]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Update after gnulib changed.
authorBruno Haible <bruno@clisp.org>
Wed, 24 Jun 2026 20:34:10 +0000 (22:34 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 24 Jun 2026 20:34:10 +0000 (22:34 +0200)
* gettext-runtime/intl/setlocale.c (setlocale_unixlike): Use strnul.

gettext-runtime/intl/setlocale.c

index 08992a3ce520c1a6406c0c02690dd68b856b2366..8f7c394f6ae582e93fb57d29c2575ae6d0ad106b 100644 (file)
@@ -763,7 +763,7 @@ setlocale_unixlike (int category, const char *locale)
             const char *territory_start = underscore + 1;
             const char *territory_end = strchr (territory_start, '@');
             if (territory_end == NULL)
-              territory_end = territory_start + strlen (territory_start);
+              territory_end = strnul (territory_start);
 
             char ll_buf[64];
             memcpy (ll_buf, llCC_buf, underscore - llCC_buf);