lib: utils: Add strncpy macro to libfdt_env.h
authorDaniel Schaefer <daniel.schaefer@hpe.com>
Wed, 19 May 2021 07:54:08 +0000 (15:54 +0800)
committerAnup Patel <anup@brainfault.org>
Wed, 19 May 2021 12:03:33 +0000 (17:33 +0530)
we want to use sbi_strncpy as strncpy in the OpenSBI implementation for
libfdt.

Just like 2845d2d2cf4fb74a89452ba223995aa4a118c07e

Signed-off-by: Daniel Schaefer <daniel.schaefer@hpe.com>
Reviewed-by: Abner Chang <abner.chang@hpe.com>
Reviewed-by: Xiang W <wxjstz@126.com>
Reviewed-by: Anup Patel <anup.patel@wdc.com>
lib/utils/libfdt/libfdt_env.h

index bc3e758..f9d9c67 100644 (file)
@@ -31,6 +31,7 @@
 #define strchr         sbi_strchr
 #define strrchr                sbi_strrchr
 #define strcpy         sbi_strcpy
+#define strncpy                sbi_strncpy
 #define strcmp         sbi_strcmp
 #define strncmp                sbi_strncmp
 #define strlen         sbi_strlen