summaryrefslogtreecommitdiff
path: root/src/string/strcpy.c
diff options
context:
space:
mode:
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));
*/