From: Masatake YAMATO Date: Tue, 13 Jun 2023 10:21:33 +0000 (+0900) Subject: lsfd: use xstrdup instead of xasprintf(...\"%s\" X-Git-Tag: v2.40-rc1~389^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=157a469671968bcae0445ba0042c364e55cf8da9;p=thirdparty%2Futil-linux.git lsfd: use xstrdup instead of xasprintf(...\"%s\" Signed-off-by: Masatake YAMATO --- 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: