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/namei.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/namei.c')
-rw-r--r-- | misc-utils/namei.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/misc-utils/namei.c b/misc-utils/namei.c index 3c2e7fc31..e53b4c9a4 100644 --- a/misc-utils/namei.c +++ b/misc-utils/namei.c @@ -123,7 +123,7 @@ add_id(struct idcache **ic, char *name, unsigned long int id, int *width) /* note, we ignore names with non-printable widechars */ if (w > 0) nc->name = xstrdup(name); - else if (asprintf(&nc->name, "%lu", id) == -1) + else if (xasprintf(&nc->name, "%lu", id) == -1) nc->name = NULL; for (x = *ic; x && x->next; x = x->next); |