From mboxrd@z Thu Jan 1 00:00:00 1970 From: Xiang W Date: Wed, 19 May 2021 16:37:54 +0800 Subject: [PATCH v2 1/3] lib: utils: Add strncpy macro to libfdt_env.h In-Reply-To: <20210519075410.8520-2-daniel.schaefer@hpe.com> References: <20210519075410.8520-1-daniel.schaefer@hpe.com> <20210519075410.8520-2-daniel.schaefer@hpe.com> Message-ID: List-Id: To: opensbi@lists.infradead.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit ? 2021-05-19?? 15:54 +0800?Daniel Schaefer??? > Just like 2845d2d2cf4fb74a89452ba223995aa4a118c07e > we want to use sbi_strncpy as strncpy in the OpenSBI implementation > for > libfdt. > > Cc: Abner Chang > Cc: Anup Patel > Signed-off-by: Daniel Schaefer > Reviewed-by: Abner Chang Reviewed-by: Xiang W > --- > lib/utils/libfdt/libfdt_env.h | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/lib/utils/libfdt/libfdt_env.h > b/lib/utils/libfdt/libfdt_env.h > index bc3e7588660a..f9d9c6783c52 100644 > --- a/lib/utils/libfdt/libfdt_env.h > +++ b/lib/utils/libfdt/libfdt_env.h > @@ -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 > -- > 2.30.1 > >