From ef14b18f8e65343e94335498607c846939688074 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 8d84728b7b..539d02705e 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))