fixed annoying error in _buffer_is_binary() which returned false sometimes even when the input were in fact binary. This fixes those 2 annoying unittests which failed from time to time.

This commit is contained in:
git@daemon.de
2014-02-17 17:03:55 +01:00
parent 3f03f97992
commit 1afb5cc3d7
5 changed files with 52 additions and 31 deletions

View File

@@ -184,6 +184,7 @@ pcp_ks_bundle_t *pcp_import_pub(unsigned char *raw, size_t rawsize) {
/* first, try to decode the input */
z85 = pcp_readz85string(raw, rawsize);
if(z85 != NULL)
bin = pcp_z85_decode(z85, &clen);