summaryrefslogtreecommitdiff
path: root/src/string/strcpy.c
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2024-06-03 13:56:25 -0400
committerJakob Kaivo <jkk@ung.org>2024-06-03 13:56:25 -0400
commita686d047d79bdfc37c096a4fa350c37e4ccf3cf5 (patch)
treeca631b9095454a239211b6f676bdd3e0cb102156 /src/string/strcpy.c
parentc575f269ed4a04f89d610b423cc43ce7bd6f008b (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.c5
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));
*/