Add typelen parameter to chunk_to_sequence function

The parameter is used to initialize the given sequence to zero.
This commit is contained in:
Adrian-Ken Rueegsegger
2013-03-19 15:23:48 +01:00
committed by Tobias Brunner
parent 270b321e97
commit 0f0165c81f
6 changed files with 14 additions and 10 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ START_TEST(test_chunk_to_sequence)
chunk_t chunk = chunk_from_thing("ABCDEFGH");
key_type key;
chunk_to_sequence(&chunk, &key);
chunk_to_sequence(&chunk, &key, sizeof(key_type));
fail_if(key.size != chunk.len, "Seq size mismatch");
uint32_t i;