aboutsummaryrefslogtreecommitdiffstats
path: root/src/openssl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/openssl.c')
-rw-r--r--src/openssl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/openssl.c b/src/openssl.c
index 890ca2c..66c5d8b 100644
--- a/src/openssl.c
+++ b/src/openssl.c
@@ -8515,7 +8515,7 @@ static int ssl_getClientRandom(lua_State *L) {
luaL_addsize(&B, len);
luaL_pushresult(&B);
#else
- out = luaL_buffinitsize(L, &B, len);
+ out = (unsigned char*)luaL_buffinitsize(L, &B, len);
len = SSL_get_client_random(ssl, out, len);
luaL_pushresultsize(&B, len);
#endif