From 3591d3f7fab12a9fc775000d0e4f3d10943d2113 Mon Sep 17 00:00:00 2001 From: Knutwurst <36196269+knutwurst@users.noreply.github.com> Date: Tue, 2 Jun 2020 15:03:25 +0200 Subject: [PATCH] Fix for buffer overflow when an sd card with non ascii characters is read. --- Marlin/src/lcd/anycubic_serial.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Marlin/src/lcd/anycubic_serial.cpp b/Marlin/src/lcd/anycubic_serial.cpp index 5df106b0..cb084925 100755 --- a/Marlin/src/lcd/anycubic_serial.cpp +++ b/Marlin/src/lcd/anycubic_serial.cpp @@ -47,9 +47,9 @@ // to which to write the next incoming character and tail is the index of the // location from which to read. #if (RAMEND < 1000) -#define SERIAL_BUFFER_SIZE 64 + #define SERIAL_BUFFER_SIZE 16 #else -#define SERIAL_BUFFER_SIZE 128 + #define SERIAL_BUFFER_SIZE 64 #endif struct ring_buffer