From efc4117900b2cb5922d238f53dd37f74d7c2f9ab Mon Sep 17 00:00:00 2001 From: DarthArgus Date: Tue, 13 Oct 2015 15:43:38 -0500 Subject: [PATCH] the server runs properly with this so I'll just hope it's more correct, per the warn --- .../soePlatform/VChatAPI/utils2.0/utils/Base/Base64.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/external/3rd/library/soePlatform/VChatAPI/utils2.0/utils/Base/Base64.cpp b/external/3rd/library/soePlatform/VChatAPI/utils2.0/utils/Base/Base64.cpp index 3aba1fb2..40d5c384 100644 --- a/external/3rd/library/soePlatform/VChatAPI/utils2.0/utils/Base/Base64.cpp +++ b/external/3rd/library/soePlatform/VChatAPI/utils2.0/utils/Base/Base64.cpp @@ -315,7 +315,7 @@ namespace soe UUEncodeTripleToQuadPtr(source + z,quad,(z + 3 < sourceLen) ? 3 : (sourceLen - z)); destLen -= strlen(quad); if (destLen > 0) { - dest += snprintf(dest, sizeof(dest), quad); + dest += snprintf(dest, sourceLen, quad); } else { noErrors = false; } @@ -355,7 +355,7 @@ namespace soe { UUEncodeTripleToQuadRef(source.begin() + z,quad,(z + 3 < sourceLen) ? 3 : (sourceLen - z)); if (destLen > 0) { - dest += snprintf(dest, sizeof(dest), quad); + dest += snprintf(dest, sourceLen, quad); } else { noErrors = false; } @@ -389,7 +389,7 @@ namespace soe for (; sourceLen > 0; sourceLen--, source++) { if (destLen >= 2) { - destLen -= snprintf(dest, sizeof(dest), format, *source); + destLen -= snprintf(dest, sourceLen, format, *source); } else { noErrors = false; }