From patchwork Thu May 31 15:55:25 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steve Dickson X-Patchwork-Id: 10441321 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 87D5B603B5 for ; Thu, 31 May 2018 15:55:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7C1B328C33 for ; Thu, 31 May 2018 15:55:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 70C4828C34; Thu, 31 May 2018 15:55:32 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 44F6628C3D for ; Thu, 31 May 2018 15:55:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755456AbeEaPz3 (ORCPT ); Thu, 31 May 2018 11:55:29 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:50242 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755560AbeEaPz1 (ORCPT ); Thu, 31 May 2018 11:55:27 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 7F326402663A for ; Thu, 31 May 2018 15:55:27 +0000 (UTC) Received: from steved.boston.devel.redhat.com (steved.boston.devel.redhat.com [10.19.60.47]) by smtp.corp.redhat.com (Postfix) with ESMTP id 598F939DDB for ; Thu, 31 May 2018 15:55:27 +0000 (UTC) From: Steve Dickson To: Linux NFS Mailing list Subject: [PATCH 2/2] Fixed format overflow warnings in mountd and nfsd Date: Thu, 31 May 2018 11:55:25 -0400 Message-Id: <20180531155525.60495-3-steved@redhat.com> In-Reply-To: <20180531155525.60495-1-steved@redhat.com> References: <20180531155525.60495-1-steved@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.6]); Thu, 31 May 2018 15:55:27 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.6]); Thu, 31 May 2018 15:55:27 +0000 (UTC) for IP:'10.11.54.5' DOMAIN:'int-mx05.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'steved@redhat.com' RCPT:'' Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: gabriele balducci Signed-off-by: Steve Dickson --- utils/mountd/mountd.c | 2 +- utils/nfsd/nfsd.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/mountd/mountd.c b/utils/mountd/mountd.c index 4c68702..086c39b 100644 --- a/utils/mountd/mountd.c +++ b/utils/mountd/mountd.c @@ -702,7 +702,7 @@ main(int argc, char **argv) else NFSCTL_TCPUNSET(_rpcprotobits); for (vers = 2; vers <= 4; vers++) { - char tag[10]; + char tag[20]; sprintf(tag, "vers%d", vers); if (conf_get_bool("nfsd", tag, NFSCTL_VERISSET(nfs_version, vers))) NFSCTL_VERSET(nfs_version, vers); diff --git a/utils/nfsd/nfsd.c b/utils/nfsd/nfsd.c index 2303a5d..f048631 100644 --- a/utils/nfsd/nfsd.c +++ b/utils/nfsd/nfsd.c @@ -98,7 +98,7 @@ main(int argc, char **argv) else NFSCTL_TCPUNSET(protobits); for (i = 2; i <= 4; i++) { - char tag[10]; + char tag[20]; sprintf(tag, "vers%d", i); if (conf_get_bool("nfsd", tag, NFSCTL_VERISSET(versbits, i))) NFSCTL_VERSET(versbits, i);