From 4ac020de644c9e00fc76306e908ecc79de2db31c Mon Sep 17 00:00:00 2001 From: jeff-lien-wdc Date: Tue, 2 Jul 2024 09:45:23 -0500 Subject: [PATCH] wdc: Fix compiler warning. Make the file_path array size big enough to contain the full directory and file name. Signed-off-by: jeff-lien-wdc --- plugins/wdc/wdc-nvme.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/wdc/wdc-nvme.c b/plugins/wdc/wdc-nvme.c index 89b0d738..bf1ab78b 100644 --- a/plugins/wdc/wdc-nvme.c +++ b/plugins/wdc/wdc-nvme.c @@ -3711,7 +3711,7 @@ free_buf: static int dump_internal_logs(struct nvme_dev *dev, char *dir_name, int verbose) { - char file_path[128]; + char file_path[PATH_MAX]; void *telemetry_log; const size_t bs = 512; struct nvme_telemetry_log *hdr; -- 2.50.1