summaryrefslogtreecommitdiffstats
path: root/shlibs/blkid/src/devno.c
diff options
context:
space:
mode:
Diffstat (limited to 'shlibs/blkid/src/devno.c')
-rw-r--r--shlibs/blkid/src/devno.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/shlibs/blkid/src/devno.c b/shlibs/blkid/src/devno.c
index f48f26ecb..7b9438ff7 100644
--- a/shlibs/blkid/src/devno.c
+++ b/shlibs/blkid/src/devno.c
@@ -99,8 +99,8 @@ int blkid_fstatat(DIR *dir, const char *dirname, const char *filename,
char device[PATH_MAX];
int len;
- len = snprintf(device, sizeof(device), "%s/%s", *dirname, name);
- if (len < 0 || len + 1 > sizeof(path))
+ len = snprintf(device, sizeof(device), "%s/%s", dirname, filename);
+ if (len < 0 || len + 1 > sizeof(device))
return -1;
return nofollow ? lstat(device, st) : stat(device, st);