Corrected buffer size computation in the pmi2_api.c module.