you can get away with not allocating here by reading the next field (storing it) the null terminating over it.