gps: Increase param name buffer to address warning in newer gccs (#19876)

This commit is contained in:
Thomas Debrunner
2022-07-06 10:20:31 +02:00
committed by GitHub
parent b0490b9f6b
commit 42c562b748
+1 -1
View File
@@ -325,7 +325,7 @@ GPS::GPS(const char *path, gps_driver_mode_t mode, GPSHelper::Interface interfac
if (_mode == gps_driver_mode_t::None) {
// use parameter to select mode if not provided via CLI
char protocol_param_name[16];
char protocol_param_name[17];
snprintf(protocol_param_name, sizeof(protocol_param_name), "GPS_%i_PROTOCOL", (int)_instance + 1);
int32_t protocol = 0;
param_get(param_find(protocol_param_name), &protocol);