ソースを参照

PSTR alias followup (#20831)

Tanguy Pruvot 4年前
コミット
ef14b18f8e
コミッターのメールアドレスに関連付けられたアカウントが存在しません
1個のファイルの変更1行の追加1行の削除
  1. 1
    1
      Marlin/src/HAL/shared/progmem.h

+ 1
- 1
Marlin/src/HAL/shared/progmem.h ファイルの表示

101
 #define strncat_P(a, b, n) strncat((a), (b), (n))
101
 #define strncat_P(a, b, n) strncat((a), (b), (n))
102
 #endif
102
 #endif
103
 #ifndef strncpy_P
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
 #endif
105
 #endif
106
 #ifndef strpbrk_P
106
 #ifndef strpbrk_P
107
 #define strpbrk_P(str, chrs) strpbrk((str), (chrs))
107
 #define strpbrk_P(str, chrs) strpbrk((str), (chrs))

読み込み中…
キャンセル
保存