diff options
author | Sami Kerola | 2012-02-29 15:54:24 +0100 |
---|---|---|
committer | Sami Kerola | 2012-03-18 14:28:05 +0100 |
commit | 6f312c89578be7b8d0a47c75a4de4cc8c190e40e (patch) | |
tree | cde8876c4831c709bc210455bccd0b70aa2e1b52 /sys-utils/mount.c | |
parent | include: add asprintf wrapper (diff) | |
download | kernel-qcow2-util-linux-6f312c89578be7b8d0a47c75a4de4cc8c190e40e.tar.gz kernel-qcow2-util-linux-6f312c89578be7b8d0a47c75a4de4cc8c190e40e.tar.xz kernel-qcow2-util-linux-6f312c89578be7b8d0a47c75a4de4cc8c190e40e.zip |
xalloc: use xasprintf in all files
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'sys-utils/mount.c')
-rw-r--r-- | sys-utils/mount.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys-utils/mount.c b/sys-utils/mount.c index 69f536b47..b1a0390d6 100644 --- a/sys-utils/mount.c +++ b/sys-utils/mount.c @@ -769,7 +769,7 @@ int main(int argc, char **argv) case 'U': if (source) errx(MOUNT_EX_USAGE, _("only one <source> may be specified")); - if (asprintf(&srcbuf, "%s=\"%s\"", + if (xasprintf(&srcbuf, "%s=\"%s\"", c == 'L' ? "LABEL" : "UUID", optarg) <= 0) err(MOUNT_EX_SYSERR, _("failed to allocate source buffer")); source = srcbuf; |