Browse Source

PSTR alias followup (#20831)

Tanguy Pruvot 3 years ago
parent
commit
ef14b18f8e
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/src/HAL/shared/progmem.h

+ 1
- 1
Marlin/src/HAL/shared/progmem.h View File

@@ -101,7 +101,7 @@
101 101
 #define strncat_P(a, b, n) strncat((a), (b), (n))
102 102
 #endif
103 103
 #ifndef strncpy_P
104
-#define strncpy_P(a, b, n) strncmp((a), (b), (n))
104
+#define strncpy_P(a, b, n) strncpy((a), (b), (n))
105 105
 #endif
106 106
 #ifndef strpbrk_P
107 107
 #define strpbrk_P(str, chrs) strpbrk((str), (chrs))

Loading…
Cancel
Save