]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
fdisk: don't shorten long path to disk device
authorKarel Zak <kzak@redhat.com>
Wed, 12 Oct 2011 08:15:58 +0000 (10:15 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 12 Oct 2011 08:25:01 +0000 (10:25 +0200)
Reported-by: Petr Uzel <petr.uzel@suse.cz>
Signed-off-by: Karel Zak <kzak@redhat.com>
fdisk/partname.c

index 1fe3087b444ebf93098edc9b42b6985922422a3e..d2782dca1cdfb35e7383864feb05e62c6e7d9997 100644 (file)
@@ -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;