fixed invalid malloc if char *z85

This commit is contained in:
TLINDEN
2013-11-16 15:13:03 +01:00
parent b9255e80c3
commit da55e17ff7

View File

@@ -63,7 +63,7 @@ unsigned char *pcp_z85_decode(char *z85block, size_t *dstlen) {
size_t zlen, binlen, outlen;
zlen = strlen(z85block);
char *z85 = ucmalloc(zlen);
char *z85 = ucmalloc(zlen+1);
// remove newlines
pos = 0;