diff --git a/t/t.h b/t/t.h index 3fc6f07..51c3452 100644 --- a/t/t.h +++ b/t/t.h @@ -83,7 +83,7 @@ void t_fcloseall(void); * Various utilities */ int t_compare_mem(const void *, const void *, size_t); -int t_compare_str(const char *, const char *, size_t); +int t_compare_str(const char *, const char *); /* * Useful constants diff --git a/t/t_util.c b/t/t_util.c index 7a1a9a3..5129cd6 100644 --- a/t/t_util.c +++ b/t/t_util.c @@ -70,7 +70,7 @@ int t_compare_str(const char *expected, const char *received) { - if (strcmp(expected, received, len) != 0) { + if (strcmp(expected, received) != 0) { t_verbose("expected %s\n", expected); t_verbose("received %s\n", received); return (0);