Use chunk_t.len instead of sizeof function