summaryrefslogtreecommitdiffstats
path: root/libblkid/src/read.c
diff options
context:
space:
mode:
authorKarel Zak2012-11-30 10:56:54 +0100
committerKarel Zak2012-11-30 10:56:54 +0100
commite0a9b8cf2d7a2f0264332fbc870341103840ed06 (patch)
treef90a7e6230176b90ee4448a994b0c1dd5d489646 /libblkid/src/read.c
parentlibblkid: add function attributes to private API (diff)
downloadkernel-qcow2-util-linux-e0a9b8cf2d7a2f0264332fbc870341103840ed06.tar.gz
kernel-qcow2-util-linux-e0a9b8cf2d7a2f0264332fbc870341103840ed06.tar.xz
kernel-qcow2-util-linux-e0a9b8cf2d7a2f0264332fbc870341103840ed06.zip
libblkid: remove blkid_{strndup,strdup}
Don't try to be smart. Let's use standard libc functions. (Note that we have fallback for strndup() in include/strutils.h) Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libblkid/src/read.c')
-rw-r--r--libblkid/src/read.c2
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;