diff --git a/firmware/controllers/actuators/lcd_controller.cpp b/firmware/controllers/actuators/lcd_controller.cpp index 879d189ea7..7c84075c98 100644 --- a/firmware/controllers/actuators/lcd_controller.cpp +++ b/firmware/controllers/actuators/lcd_controller.cpp @@ -200,7 +200,7 @@ static void lcdPrintf(const char *fmt, ...) { } static void showLine(lcd_line_e line, int screenY) { - static char buffer[10]; + static char buffer[_MAX_FILLER + 2]; switch (line) { case LL_VERSION: diff --git a/firmware/development/engine_sniffer.h b/firmware/development/engine_sniffer.h index 9a659b4f75..cbf1c9f05d 100644 --- a/firmware/development/engine_sniffer.h +++ b/firmware/development/engine_sniffer.h @@ -30,7 +30,7 @@ public: bool isStartedTooLongAgo() const; private: Logging logging; - char timeBuffer[10]; + char timeBuffer[_MAX_FILLER + 2]; uint32_t counter = 0; /** * We want to avoid visual jitter thus we want the left edge to be aligned diff --git a/firmware/hw_layer/adc_inputs.cpp b/firmware/hw_layer/adc_inputs.cpp index d4d413709a..ab68252257 100644 --- a/firmware/hw_layer/adc_inputs.cpp +++ b/firmware/hw_layer/adc_inputs.cpp @@ -484,7 +484,7 @@ static void adc_callback_slow(ADCDriver *adcp, adcsample_t *buffer, size_t n) { AdcSubscription::UpdateSubscribers(); } -static char errorMsgBuff[10]; +static char errorMsgBuff[_MAX_FILLER]; void addChannel(const char *name, adc_channel_e setting, adc_channel_mode_e mode) { if (setting == EFI_ADC_NONE) {