From f5a1be80cdd6df89aabdb0d3af0260fa2ab18058 Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Sat, 27 Mar 2021 10:53:30 -0400 Subject: [PATCH] libc: strncat: match implementation to declaration The identifiers used in the declaration and definition of a function shall be identical [MISRAC2012-RULE_8_3-b] Signed-off-by: Anas Nashif --- lib/libc/minimal/include/string.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libc/minimal/include/string.h b/lib/libc/minimal/include/string.h index d2a7d6edb32..9ec15f2e544 100644 --- a/lib/libc/minimal/include/string.h +++ b/lib/libc/minimal/include/string.h @@ -28,7 +28,7 @@ extern int strncmp(const char *s1, const char *s2, size_t n); extern char *strtok_r(char *str, const char *sep, char **state); extern char *strcat(char *_MLIBC_RESTRICT dest, const char *_MLIBC_RESTRICT src); -extern char *strncat(char *_MLIBC_RESTRICT d, const char *_MLIBC_RESTRICT s, +extern char *strncat(char *_MLIBC_RESTRICT dest, const char *_MLIBC_RESTRICT src, size_t n); extern char *strstr(const char *s, const char *find);