nicboul/DNDS — pull request #12 by jamael (2012-07-27 02:21:37+00:00)
Title: NULL terminate certificate and privkey

Certificates and private keys are not NULL terminated. This was discovered through the following error --

command failed with code PGRES_FATAL_ERROR, ERROR: invalid byte sequence for encoding "UTF8": 0xe5fc14

There might be garbage at the end of the string. NULL terminating it ensures proper behavior.

Compiled and tested.