Revert "Use realloc to correct the length of char buffers in pairparsevalue"

This reverts commit 4cb7b00f9cd7a702aa5ffcf3c27c3adc8a281695.