From: jeff-lien-wdc Date: Tue, 2 Jul 2024 14:45:23 +0000 (-0500) Subject: wdc: Fix compiler warning. X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=4ac020de644c9e00fc76306e908ecc79de2db31c;p=users%2Fsagi%2Fnvme-cli.git 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 --- 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;