From c53a10c638cc99fc2fde1e6bc98a5102fc959410 Mon Sep 17 00:00:00 2001 From: RichardG867 Date: Fri, 25 Oct 2024 16:38:08 -0300 Subject: [PATCH] pcireg: Fix warning in lh5 code --- pcireg/lh5_extract.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcireg/lh5_extract.c b/pcireg/lh5_extract.c index a00e86c..cd1219d 100644 --- a/pcireg/lh5_extract.c +++ b/pcireg/lh5_extract.c @@ -108,7 +108,7 @@ LH5HeaderParse(unsigned char *Buffer, int BufferSize, /* check method */ *method = Buffer[5]; if (Buffer[2] != '-' || Buffer[3] != 'l' || Buffer[4] != 'h' || (*method != '0' && *method != '5') || Buffer[6] != '-') { - fprintf(stderr, "Error: Compression method %c is not supported.\n", method); + fprintf(stderr, "Error: Compression method %c is not supported.\n", *method); return 0; }