From: Bruno Haible Date: Wed, 24 Jun 2026 20:34:10 +0000 (+0200) Subject: Update after gnulib changed. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=67deb6d5715da4fd0e6d1c23f09c5b278a803c05;p=thirdparty%2Fgettext.git Update after gnulib changed. * gettext-runtime/intl/setlocale.c (setlocale_unixlike): Use strnul. --- diff --git a/gettext-runtime/intl/setlocale.c b/gettext-runtime/intl/setlocale.c index 08992a3ce..8f7c394f6 100644 --- a/gettext-runtime/intl/setlocale.c +++ b/gettext-runtime/intl/setlocale.c @@ -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);