diff options
author | Jakob Kaivo <jkk@ung.org> | 2024-06-03 13:56:25 -0400 |
---|---|---|
committer | Jakob Kaivo <jkk@ung.org> | 2024-06-03 13:56:25 -0400 |
commit | a686d047d79bdfc37c096a4fa350c37e4ccf3cf5 (patch) | |
tree | ca631b9095454a239211b6f676bdd3e0cb102156 /src/string/strcpy.c | |
parent | c575f269ed4a04f89d610b423cc43ce7bd6f008b (diff) |
add LC_CTYPE epoch and use separate CT_ categories and CTM_ masks to support detecting change of LC_CTYPE between calls to wctype()/iswctype() and wctrans()/towctrans()
Diffstat (limited to 'src/string/strcpy.c')
-rw-r--r-- | src/string/strcpy.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/string/strcpy.c b/src/string/strcpy.c index 3f5339bf..620fdd1e 100644 --- a/src/string/strcpy.c +++ b/src/string/strcpy.c @@ -10,12 +10,17 @@ char * strcpy(char * restrict s1, const char * restrict s2) SIGNAL_SAFE(0); ASSERT_NONNULL(s1); ASSERT_NONNULL(s2); + + DANGER(s2); + ASSERT_NOOVERLAP(s1, strlen(s2), s2, strlen(s2)); while ((*s1++ = *s2++) != '\0') { continue; } + DANGER(0); + /* RETURN_ALWAYS(ARGUMENT(s1)); */ |