mirror of
https://codeberg.org/scip/pcp.git
synced 2025-12-17 12:00:56 +01:00
fixed invalid malloc if char *z85
This commit is contained in:
@@ -63,7 +63,7 @@ unsigned char *pcp_z85_decode(char *z85block, size_t *dstlen) {
|
|||||||
size_t zlen, binlen, outlen;
|
size_t zlen, binlen, outlen;
|
||||||
|
|
||||||
zlen = strlen(z85block);
|
zlen = strlen(z85block);
|
||||||
char *z85 = ucmalloc(zlen);
|
char *z85 = ucmalloc(zlen+1);
|
||||||
|
|
||||||
// remove newlines
|
// remove newlines
|
||||||
pos = 0;
|
pos = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user