2b540b
From 5ef603f388957b472326180a1e23ade61e80c163 Mon Sep 17 00:00:00 2001
2b540b
From: "Adam C. Emerson" <aemerson@redhat.com>
2b540b
Date: Tue, 8 May 2018 16:50:02 -0400
2b540b
Subject: [PATCH] mount: Enlarge buffer to fix overflow warning
2b540b
2b540b
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
2b540b
---
2b540b
 src/mount/canonicalize.c | 2 +-
2b540b
 1 file changed, 1 insertion(+), 1 deletion(-)
2b540b
2b540b
diff --git a/src/mount/canonicalize.c b/src/mount/canonicalize.c
2b540b
index 7561e41ac5..02efbbedff 100644
2b540b
--- a/src/mount/canonicalize.c
2b540b
+++ b/src/mount/canonicalize.c
2b540b
@@ -154,7 +154,7 @@ canonicalize_dm_name(const char *ptname)
2b540b
 {
2b540b
 	FILE	*f;
2b540b
 	size_t	sz;
2b540b
-	char	path[256], name[256], *res = NULL;
2b540b
+	char	path[268], name[256], *res = NULL;
2b540b
 
2b540b
 	snprintf(path, sizeof(path), "/sys/block/%s/dm/name", ptname);
2b540b
 	if (!(f = fopen(path, "r")))
2b540b
-- 
2b540b
2.14.3
2b540b