Parcourir la source

PSTR alias followup (#20831)

Tanguy Pruvot il y a 3 ans
Parent
révision
ef14b18f8e
Aucun compte lié à l'adresse e-mail de l'auteur
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1
    1
      Marlin/src/HAL/shared/progmem.h

+ 1
- 1
Marlin/src/HAL/shared/progmem.h Voir le fichier

@@ -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))

Chargement…
Annuler
Enregistrer