Skip to content

Commit 4ac020d

Browse files
jeff-lien-sndkigaw
authored andcommitted
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 <jeff.lien@wdc.com>
1 parent e1ce079 commit 4ac020d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/wdc/wdc-nvme.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -3711,7 +3711,7 @@ static int wdc_do_sn730_get_and_tar(int fd, char *outputName)
37113711

37123712
static int dump_internal_logs(struct nvme_dev *dev, char *dir_name, int verbose)
37133713
{
3714-
char file_path[128];
3714+
char file_path[PATH_MAX];
37153715
void *telemetry_log;
37163716
const size_t bs = 512;
37173717
struct nvme_telemetry_log *hdr;

0 commit comments

Comments
 (0)