Whamcloud - gitweb
libblkid: fix gcc -Wall warnings
[tools/e2fsprogs.git] / lib / blkid / devname.c
index e2b8051..6a21963 100644 (file)
@@ -126,7 +126,7 @@ static int is_dm_leaf(const char *devname)
 {
        struct dirent   *de, *d_de;
        DIR             *dir, *d_dir;
-       char            path[256];
+       char            path[300];
        int             ret = 1;
 
        if ((dir = opendir("/sys/block")) == NULL)
@@ -162,7 +162,7 @@ static char *get_dm_name(const char *ptname)
 {
        FILE    *f;
        size_t  sz;
-       char    path[256], name[256], *res = NULL;
+       char    path[300], name[256], *res = NULL;
 
        snprintf(path, sizeof(path), "/sys/block/%s/dm/name", ptname);
        if ((f = fopen(path, "r")) == NULL)