Skip to content

Commit 0ecc486

Browse files
committed
Fixed strncpy_P macro
1 parent 148cf26 commit 0ecc486

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

version_helper.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ e-mail : [email protected]
118118
#define strncat_P(a, b, n) strncat((a), (b), (n))
119119
#endif
120120
#ifndef strncpy_P
121-
#define strncpy_P(a, b, n) strncmp((a), (b), (n))
121+
#define strncpy_P(a, b, n) strncpy((a), (b), (n))
122122
#endif
123123
#ifndef strpbrk_P
124124
#define strpbrk_P(str, chrs) strpbrk((str), (chrs))

0 commit comments

Comments
 (0)