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

This reverts commit 4a6511458ec66c4bb9ea14e061f37cc5cc6d2b0e.