With the above change this has to be:
const char *str = body_parts[i];