From 0ecc486feebd7a7011521cc4f37aace0414d8a50 Mon Sep 17 00:00:00 2001 From: Kristian Sloth Lauszus Date: Fri, 5 Apr 2019 18:25:33 +0200 Subject: [PATCH] Fixed strncpy_P macro --- version_helper.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/version_helper.h b/version_helper.h index a2681c34..ab7bb0ca 100644 --- a/version_helper.h +++ b/version_helper.h @@ -118,7 +118,7 @@ e-mail : support@circuitsathome.com #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))