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 /misc-utils/lsblk.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 'misc-utils/lsblk.c')
-rw-r--r-- | misc-utils/lsblk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/misc-utils/lsblk.c b/misc-utils/lsblk.c index 4709aaaae..9c0be2749 100644 --- a/misc-utils/lsblk.c +++ b/misc-utils/lsblk.c @@ -604,7 +604,7 @@ static void set_tt_data(struct blkdev_cxt *cxt, int col, int id, struct tt_line case COL_SIZE: if (cxt->size) { if (lsblk->bytes) { - if (asprintf(&p, "%jd", cxt->size) < 0) + if (xasprintf(&p, "%jd", cxt->size) < 0) p = NULL; } else p = size_to_human_string(SIZE_SUFFIX_1LETTER, cxt->size); |