From 13e14a6bfd9f29cbfeab0c5161d2a994f97532e7 Mon Sep 17 00:00:00 2001 From: Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> Date: Thu, 26 Mar 2026 12:53:53 +0100 Subject: Update/gnulib 2026 03 (#2247) * Sync with the 202601-stable Gnulib code (4a3650d887) * Ignore more deps stuff in gnulib * Remove autogenerated gnulib files * Ignore more gnulib generated headers --- gl/gethostname.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'gl/gethostname.c') diff --git a/gl/gethostname.c b/gl/gethostname.c index 8f0ceafc..464bac39 100644 --- a/gl/gethostname.c +++ b/gl/gethostname.c @@ -1,6 +1,6 @@ /* gethostname emulation for SysV and POSIX.1. - Copyright (C) 1992, 2003, 2006, 2008-2025 Free Software Foundation, Inc. + Copyright (C) 1992, 2003, 2006, 2008-2026 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as @@ -89,12 +89,10 @@ gethostname (char *name, size_t len) int rpl_gethostname (char *name, size_t len) { - int r; - if (len > INT_MAX) len = INT_MAX; gl_sockets_startup (SOCKETS_1_1); - r = gethostname (name, (int) len); + int r = gethostname (name, (int) len); if (r < 0) set_winsock_errno (); -- cgit v1.2.3-74-g34f1