aboutsummaryrefslogtreecommitdiff
path: root/tests/test_utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_utils.c')
-rw-r--r--tests/test_utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_utils.c b/tests/test_utils.c
index 94b4585..a2fa8c6 100644
--- a/tests/test_utils.c
+++ b/tests/test_utils.c
@@ -44,7 +44,7 @@ void test_redact_sensitive() {
for (size_t i = 0; i < sizeof(data) / sizeof(*data); i++) {
char *input = strdup(data[i]);
char output[100] = {0};
- redact_sensitive(to_redact, input, output, sizeof(output) - 1);
+ redact_sensitive(to_redact, sizeof(to_redact) / sizeof(*to_redact), input, output, sizeof(output) - 1);
OMC_ASSERT(strcmp(output, expected[i]) == 0, "incorrect redaction");
}
}