- fixed bug in memory reallocation

This commit is contained in:
Jan Hutter
2005-11-10 09:31:07 +00:00
parent 67a57dc6f4
commit c7748338f2
5 changed files with 63 additions and 25 deletions
+3 -1
View File
@@ -84,7 +84,9 @@ void test_generator_with_header_payload(tester_t *tester)
0x00,0x00,0x00,0x07,
0x00,0x00,0x00,0x08,
};
tester->assert_true(tester,(generated_data.len == sizeof(expected_generation)), "compare generated data length");
tester->assert_true(tester,(memcmp(expected_generation,generated_data.ptr,sizeof(expected_generation)) == 0), "compare generated data");
allocator_free_chunk(generated_data);