ACK: [PATCH] lib: fix compile error for debian + gcc 8.3

ivanhu ivan.hu at canonical.com
Mon Jan 18 07:04:30 UTC 2021



On 1/16/21 2:18 AM, Alex Hung wrote:
> Fixes: ffea02df09d3 ("add fwts_acpi_space_id_check to check GAS ...")
> 
> Reported-by: Rebecca Cran <rebecca at nuviainc.com>
> Signed-off-by: Alex Hung <alex.hung at canonical.com>
> ---
>  src/lib/src/fwts_acpi_tables.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/src/lib/src/fwts_acpi_tables.c b/src/lib/src/fwts_acpi_tables.c
> index d88d31e4..a42157be 100644
> --- a/src/lib/src/fwts_acpi_tables.c
> +++ b/src/lib/src/fwts_acpi_tables.c
> @@ -1680,9 +1680,9 @@ void fwts_acpi_space_id_check(
>  
>  		strncat(must_be_id, get_space_id_name(must_be), strlen(get_space_id_name(must_be)));
>  		if (i < num_type - 2)
> -			strncat(must_be_id, ", ", 2);
> +			strncat(must_be_id, ", ", 3);
>  		else if (i == num_type - 2)
> -			strncat(must_be_id, " or ", 4);
> +			strncat(must_be_id, " or ", 5);
>  	}
>  
>  	if (!matched) {
> 

Acked-by: Ivan Hu <ivan.hu at canonical.com>



More information about the fwts-devel mailing list