Received: by mail.netbsd.org (Postfix, from userid 605) id 3781A84D63; Fri, 7 Feb 2020 20:13:27 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id AEC8284D58 for ; Fri, 7 Feb 2020 20:13:26 +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 b8CkmItpNvA6 for ; Fri, 7 Feb 2020 20:13:26 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.netbsd.org [199.233.217.197]) by mail.netbsd.org (Postfix) with ESMTP id 545EB84CEF for ; Fri, 7 Feb 2020 20:13:26 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 4D49CFBF4; Fri, 7 Feb 2020 20:13:26 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Fri, 7 Feb 2020 20:13:26 +0000 From: "Santhosh Raju" Subject: CVS commit: src/usr.sbin/altq/altqstat To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20200207201326.4D49CFBF4@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: "Santhosh Raju" Mail-Followup-To: source-changes-d@NetBSD.org List-Unsubscribe: Module Name: src Committed By: fox Date: Fri Feb 7 20:13:26 UTC 2020 Modified Files: src/usr.sbin/altq/altqstat: quip_client.c Log Message: usr.sbin/altq: Fix -Wstringop-truncation warning. Looks like the original intention was to truncate the string at len. Replace strncpy(3) with strlcpy(3). Error was reported when build.sh was run with MKLIBCSANITIZER=yes flag. Reviewed by: kamil@ To generate a diff of this commit: cvs rdiff -u -r1.12 -r1.13 src/usr.sbin/altq/altqstat/quip_client.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.