|
|
f05351d |
From 94de9a2112cddfdacdb7d63b5c24be99e3db4124
|
|
|
f05351d |
From: Steve Dickson <steved@redhat.com>
|
|
|
f05351d |
Date: Tue, 29 Jan 2019 15:31:06 -0500
|
|
|
f05351d |
Subject: [PATCH] nfs-utils: Removed new error=format-overflow=2 errors
|
|
|
f05351d |
|
|
|
f05351d |
With the latest C99-compliant gcc printf, sprintf, etc
|
|
|
f05351d |
now only support up to 4k in buffer sizes. There were
|
|
|
f05351d |
only a couple places that had to change to not
|
|
|
f05351d |
violated this new restriction
|
|
|
f05351d |
|
|
|
f05351d |
Signed-off-by: Steve Dickson <steved@redhat.com>
|
|
|
f05351d |
---
|
|
|
f05351d |
utils/blkmapd/device-discovery.c | 2 +-
|
|
|
f05351d |
utils/mount/error.c | 4 ++--
|
|
|
f05351d |
2 files changed, 3 insertions(+), 3 deletions(-)
|
|
|
f05351d |
|
|
|
f05351d |
diff --git a/utils/blkmapd/device-discovery.c b/utils/blkmapd/device-discovery.c
|
|
|
f05351d |
index 3a202e0..2ce60f8 100644
|
|
|
f05351d |
--- a/utils/blkmapd/device-discovery.c
|
|
|
f05351d |
+++ b/utils/blkmapd/device-discovery.c
|
|
|
f05351d |
@@ -239,7 +239,7 @@ int bl_discover_devices(void)
|
|
|
f05351d |
{
|
|
|
f05351d |
FILE *f;
|
|
|
f05351d |
int n;
|
|
|
f05351d |
- char buf[PATH_MAX], devname[PATH_MAX], fulldevname[PATH_MAX+NAME_MAX];
|
|
|
f05351d |
+ char buf[PATH_MAX], devname[NAME_MAX], fulldevname[PATH_MAX];
|
|
|
f05351d |
|
|
|
f05351d |
/* release previous list */
|
|
|
f05351d |
bl_release_disk();
|
|
|
f05351d |
diff --git a/utils/mount/error.c b/utils/mount/error.c
|
|
|
f05351d |
index dfe5c7d..562f312 100644
|
|
|
f05351d |
--- a/utils/mount/error.c
|
|
|
f05351d |
+++ b/utils/mount/error.c
|
|
|
f05351d |
@@ -50,8 +50,8 @@
|
|
|
f05351d |
|
|
|
f05351d |
extern char *progname;
|
|
|
f05351d |
|
|
|
f05351d |
-static char errbuf[BUFSIZ];
|
|
|
f05351d |
-static char *erreob = &errbuf[BUFSIZ];
|
|
|
f05351d |
+static char errbuf[PATH_MAX];
|
|
|
f05351d |
+static char *erreob = &errbuf[PATH_MAX];
|
|
|
f05351d |
|
|
|
f05351d |
/* Convert RPC errors into strings */
|
|
|
f05351d |
static int rpc_strerror(int spos)
|
|
|
f05351d |
--
|
|
|
f05351d |
2.20.1
|
|
|
f05351d |
|