diff options
Diffstat (limited to 'libblkid/src/read.c')
-rw-r--r-- | libblkid/src/read.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libblkid/src/read.c b/libblkid/src/read.c index d31d024bc..8914cad69 100644 --- a/libblkid/src/read.c +++ b/libblkid/src/read.c @@ -221,7 +221,7 @@ static int parse_dev(blkid_cache cache, blkid_dev *dev, char **cp) return -BLKID_ERR_CACHE; } - name = blkid_strndup(start, end-start); + name = strndup(start, end - start); if (name == NULL) return -BLKID_ERR_MEM; |