~ubuntu-branches/ubuntu/trusty/util-linux/trusty-proposed

« back to all changes in this revision

Viewing changes to fdisk/partname.c

  • Committer: Package Import Robot
  • Author(s): LaMont Jones
  • Date: 2011-11-03 15:38:23 UTC
  • mto: (4.5.5 sid) (1.6.4)
  • mto: This revision was merged to the branch mainline in revision 85.
  • Revision ID: package-import@ubuntu.com-20111103153823-10sx16jprzxlhkqf
ImportĀ upstreamĀ versionĀ 2.20.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
#include "blkdev.h"
6
6
#include "pathnames.h"
7
7
#include "common.h"
 
8
#include "c.h"
8
9
 
9
10
/*
10
11
 * return partition name - uses static storage unless buf is supplied
11
12
 */
12
13
char *
13
14
partname(char *dev, int pno, int lth) {
14
 
        static char bufp[80];
 
15
        static char bufp[PATH_MAX];
15
16
        char *p;
16
17
        int w, wp;
17
18