Don't forget the NULL byte when copying VALUE_PAIR values