aboutsummaryrefslogtreecommitdiff
path: root/tests/test_relocation.c
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2026-04-16 12:54:34 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2026-04-16 12:54:34 -0400
commitfdad37bc1854a973424459026cc32698ff5fe532 (patch)
tree7a4e7301d4ecb5c8ef4f5a81e6d20aed13638394 /tests/test_relocation.c
parentdc6b871b419159097c272fe21cdef6acece40a99 (diff)
downloadstasis-fdad37bc1854a973424459026cc32698ff5fe532.tar.gz
Convert more strcpy to strn variant
Diffstat (limited to 'tests/test_relocation.c')
-rw-r--r--tests/test_relocation.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_relocation.c b/tests/test_relocation.c
index 8a9beb6..69142dc 100644
--- a/tests/test_relocation.c
+++ b/tests/test_relocation.c
@@ -14,7 +14,7 @@ void test_replace_text() {
const char *target = targets[i];
const char *expected = targets[i + 1];
char input[BUFSIZ] = {0};
- strcpy(input, test_string);
+ strncpy(input, test_string, sizeof(input) - 1);
printf("input: %s\n", input);
printf("target: %s\n", target);