From 8176a344041c7a2b7bf6f05353bf9414c9d3b254 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Wed, 12 Oct 2011 10:15:58 +0200 Subject: [PATCH] fdisk: don't shorten long path to disk device Reported-by: Petr Uzel Signed-off-by: Karel Zak --- fdisk/partname.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fdisk/partname.c b/fdisk/partname.c index 1fe3087b44..d2782dca1c 100644 --- a/fdisk/partname.c +++ b/fdisk/partname.c @@ -5,13 +5,14 @@ #include "blkdev.h" #include "pathnames.h" #include "common.h" +#include "c.h" /* * return partition name - uses static storage unless buf is supplied */ char * partname(char *dev, int pno, int lth) { - static char bufp[80]; + static char bufp[PATH_MAX]; char *p; int w, wp; -- 2.47.2