Received: by mail.netbsd.org (Postfix, from userid 605) id 27C9984D9F; Sat, 5 Oct 2019 19:19:53 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 9DC2D84D97 for ; Sat, 5 Oct 2019 19:19:52 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([IPv6:::1]) by localhost (mail.netbsd.org [IPv6:::1]) (amavisd-new, port 10025) with ESMTP id og2ab3vc6Sie for ; Sat, 5 Oct 2019 19:19:52 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.NetBSD.org [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id 2A92E84CD5 for ; Sat, 5 Oct 2019 19:19:52 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 1E6D5FBF4; Sat, 5 Oct 2019 19:19:52 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Sat, 5 Oct 2019 19:19:52 +0000 From: "Valeriy E. Ushakov" Subject: CVS commit: src/lib/libc/gen To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20191005191952.1E6D5FBF4@cvs.NetBSD.org> Sender: source-changes-owner@NetBSD.org List-Id: source-changes.NetBSD.org Precedence: bulk Reply-To: source-changes-d@NetBSD.org Mail-Reply-To: "Valeriy E. Ushakov" Mail-Followup-To: source-changes-d@NetBSD.org List-Unsubscribe: Module Name: src Committed By: uwe Date: Sat Oct 5 19:19:52 UTC 2019 Modified Files: src/lib/libc/gen: getlogin.c Log Message: getlogin_r: use strcpy(). We check namelen before copying the result. gcc 8 -Wstringop-overflow is uhappy when the specified bounds depend on the length of the source and is not smart enough to see the check we do. Besides we don't want the padding effect of strncpy() here. To generate a diff of this commit: cvs rdiff -u -r1.15 -r1.16 src/lib/libc/gen/getlogin.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.