po->DATA.data isn't null-terminated, so you can't use strlen, here. You should be using DATA.len.