From 8d2f1851eb0dac28e5792c759713a2b210a726fc Mon Sep 17 00:00:00 2001 From: Tanguy Pruvot Date: Wed, 20 Jan 2021 23:52:09 +0100 Subject: [PATCH] PSTR alias followup (#20831) --- Marlin/src/HAL/shared/progmem.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Marlin/src/HAL/shared/progmem.h b/Marlin/src/HAL/shared/progmem.h index 8d84728b7..539d02705 100644 --- a/Marlin/src/HAL/shared/progmem.h +++ b/Marlin/src/HAL/shared/progmem.h @@ -101,7 +101,7 @@ #define strncat_P(a, b, n) strncat((a), (b), (n)) #endif #ifndef strncpy_P -#define strncpy_P(a, b, n) strncmp((a), (b), (n)) +#define strncpy_P(a, b, n) strncpy((a), (b), (n)) #endif #ifndef strpbrk_P #define strpbrk_P(str, chrs) strpbrk((str), (chrs))