From: Karel Zak Date: Wed, 12 Oct 2011 08:15:58 +0000 (+0200) Subject: fdisk: don't shorten long path to disk device X-Git-Tag: v2.21-rc1~334 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8176a344041c7a2b7bf6f05353bf9414c9d3b254;p=thirdparty%2Futil-linux.git fdisk: don't shorten long path to disk device Reported-by: Petr Uzel Signed-off-by: Karel Zak --- 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;