From 157a469671968bcae0445ba0042c364e55cf8da9 Mon Sep 17 00:00:00 2001 From: Masatake YAMATO Date: Tue, 13 Jun 2023 19:21:33 +0900 Subject: [PATCH] lsfd: use xstrdup instead of xasprintf(...\"%s\" Signed-off-by: Masatake YAMATO --- misc-utils/lsfd-file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc-utils/lsfd-file.c b/misc-utils/lsfd-file.c index 3826532ba0..d9f8acf308 100644 --- a/misc-utils/lsfd-file.c +++ b/misc-utils/lsfd-file.c @@ -204,7 +204,7 @@ static bool file_fill_column(struct proc *proc, int assoc = file->association * -1; if (assoc >= N_ASSOCS) return false; /* INTERNAL ERROR */ - xasprintf(&str, "%s", assocstr[assoc]); + str = xstrdup(assocstr[assoc]); } break; case COL_INODE: -- 2.47.3