X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fgcrypt%2Fpem.c;h=56858f23fd2d172c98557f5e10269423d304b75d;hb=a0fbaf0889fda3788943baec80671ecc870a2925;hp=0f7763c50f8045e23fb48e091050f3f898b63950;hpb=d93d4f9dbd09bc5e53a9b5eeb1cc94939fee32bc;p=tinc diff --git a/src/gcrypt/pem.c b/src/gcrypt/pem.c index 0f7763c5..56858f23 100644 --- a/src/gcrypt/pem.c +++ b/src/gcrypt/pem.c @@ -93,7 +93,7 @@ bool pem_encode(FILE *fp, const char *header, uint8_t *buf, size_t size) { return false; } - char b64[B64_SIZE(size)]; + char *b64 = alloca(B64_SIZE(size)); const size_t b64len = b64encode(b64, buf, size); for(size_t i = 0; i < b64len; i += 64) {