summaryrefslogtreecommitdiffstats
path: root/src/Protocol
diff options
context:
space:
mode:
authordaniel0916 <theschokolps@gmail.com>2014-04-13 16:15:57 +0200
committerdaniel0916 <theschokolps@gmail.com>2014-04-13 16:15:57 +0200
commitd258be678a7ea2d027434c2acc51243dd2253beb (patch)
treeb556878334e8fddc3d5be99f4cc377125b61d49f /src/Protocol
parentCode Update (diff)
downloadcuberite-d258be678a7ea2d027434c2acc51243dd2253beb.tar
cuberite-d258be678a7ea2d027434c2acc51243dd2253beb.tar.gz
cuberite-d258be678a7ea2d027434c2acc51243dd2253beb.tar.bz2
cuberite-d258be678a7ea2d027434c2acc51243dd2253beb.tar.lz
cuberite-d258be678a7ea2d027434c2acc51243dd2253beb.tar.xz
cuberite-d258be678a7ea2d027434c2acc51243dd2253beb.tar.zst
cuberite-d258be678a7ea2d027434c2acc51243dd2253beb.zip
Diffstat (limited to 'src/Protocol')
-rw-r--r--src/Protocol/Authenticator.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Protocol/Authenticator.cpp b/src/Protocol/Authenticator.cpp
index 24695b726..a79f0b7e0 100644
--- a/src/Protocol/Authenticator.cpp
+++ b/src/Protocol/Authenticator.cpp
@@ -147,7 +147,7 @@ bool cAuthenticator::AuthWithYggdrasil(AString & a_UserName, const AString & a_S
AString REQUEST;
int ret, server_fd = -1;
size_t len = -1;
- unsigned char * buf;
+ unsigned char buf[1024];
const char *pers = "cAuthenticator";
entropy_context entropy;
@@ -222,7 +222,7 @@ bool cAuthenticator::AuthWithYggdrasil(AString & a_UserName, const AString & a_S
REQUEST += "\r\n";
len = REQUEST.size();
- buf = (unsigned char *)REQUEST.c_str();
+ strcpy((char *)buf, REQUEST.c_str());
while ((ret = ssl_write(&ssl, buf, len)) <= 0)
{