From 9b6f6642ee252a9bedbe267fd85376fc9359c74f Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Tue, 30 Jan 2024 15:29:55 -0500 Subject: update standard and safety checks --- src/string/memmove_s.c | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'src/string/memmove_s.c') diff --git a/src/string/memmove_s.c b/src/string/memmove_s.c index 343a286d..3dea9080 100644 --- a/src/string/memmove_s.c +++ b/src/string/memmove_s.c @@ -1,20 +1,20 @@ -#if 0 - #include #include -#include "_assert.h" +#include "_safety.h" /** move memory **/ errno_t memmove_s(void *s1, rsize_t s1max, const void *s2, rsize_t n) { - __ASSERT_NONNULL(s1); - __ASSERT_NONNULL(s2); + SIGNAL_SAFE(0); + ASSERT_NONNULL(s1); + ASSERT_NONNULL(s2); if (n > s1max) { /* do the right thing */ } - return memmove(s1, s2, n); + memmove(s1, s2, n); + return 0; } /*** @@ -33,6 +33,3 @@ is copied so that the arg(n) bytes are safely written to arg(s1). /* CEXT1(201112) */ - - -#endif -- cgit v1.2.1