Fix message formatting errors uncovered by p_test_fail() refactoring.

This commit is contained in:
Jason Evans
2014-03-30 11:21:09 -07:00
parent e3f27cfced
commit ab8c79fdaf
5 changed files with 12 additions and 11 deletions

View File

@@ -20,7 +20,7 @@ test_zero(size_t sz_min, size_t sz_max)
if (sz_prev > 0) {
assert_c_eq(s[0], 'a',
"Previously allocated byte %zu/%zu is corrupted",
0, sz_prev);
ZU(0), sz_prev);
assert_c_eq(s[sz_prev-1], 'a',
"Previously allocated byte %zu/%zu is corrupted",
sz_prev-1, sz_prev);