Skip to content

Commit e3a733a

Browse files
W-M-Ranchao
authored andcommitted
libc/machine: fix config error
Signed-off-by: wangmingrong1 <[email protected]>
1 parent 293a87a commit e3a733a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libs/libc/machine/arch_libc.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ FAR char *ARCH_LIBCFUN(strcpy)(FAR char *dest, FAR const char *src);
6464
size_t ARCH_LIBCFUN(strlen)(FAR const char *s);
6565
#endif
6666

67-
#ifdef CONFIG_LIBC_ARCHSTRNCPY
67+
#ifdef CONFIG_LIBC_ARCH_STRNCPY
6868
FAR char *ARCH_LIBCFUN(strncpy)(FAR char *dest,
6969
FAR const char *src, size_t n);
7070
#endif
@@ -212,7 +212,7 @@ size_t strlen(FAR const char *s)
212212
}
213213
#endif
214214

215-
#ifdef CONFIG_LIBC_ARCHSTRNCPY
215+
#ifdef CONFIG_LIBC_ARCH_STRNCPY
216216
FAR char *strncpy(FAR char *dest, FAR const char *src, size_t n)
217217
{
218218
# ifdef CONFIG_MM_KASAN

0 commit comments

Comments
 (0)