Skip to content

Commit 8970bcc

Browse files
committed
fixed:build warn
1 parent e48a6bf commit 8970bcc

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

XEngine_Module/XEngine_Verification/Verification_HTTP/Verification_HTTP.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,14 +132,13 @@ bool CVerification_HTTP::Verification_HTTP_DigestClientPacket(XCHAR* ptszMSGBuff
132132
Verification_HTTP_DigestVer(tszResponseStr, lpszUser, lpszPass, lpszRequestMethod, lpszRequestUri, lpszNonceStr, tszCNonceStr);
133133

134134
int nRet = 0;
135-
XCHAR tszMSGBuffer[1024] = {};
136135
if (bQOPBody)
137136
{
138137

139138
}
140139
else
141140
{
142-
nRet = _xstprintf(tszMSGBuffer, _X("Authorization: Digest username=\"%s\","
141+
nRet = _xstprintf(ptszMSGBuffer, _X("Authorization: Digest username=\"%s\","
143142
"realm=\"%s\","
144143
"nonce=\"%s\","
145144
"uri=\"%s\","
@@ -149,7 +148,7 @@ bool CVerification_HTTP::Verification_HTTP_DigestClientPacket(XCHAR* ptszMSGBuff
149148
"response=\"%s\","
150149
"opaque=\"%s\"\r\n"), lpszUser, lpszRealm, lpszNonceStr, lpszRequestUri, tszCNonceStr, tszResponseStr, lpszOpaqueStr);
151150
}
152-
151+
*pInt_MSGLen = nRet;
153152
return true;
154153
}
155154
/********************************************************************
@@ -229,7 +228,7 @@ bool CVerification_HTTP::Verification_HTTP_DigestServerPacket(XCHAR* ptszMSGBuff
229228
"nonce=\"%s\","
230229
"opaque=\"%s\"\r\n"), lpszRealm, ptszNonceStr, ptszOpaqueStr);
231230
}
232-
231+
*pInt_MSGLen = nRet;
233232
return true;
234233
}
235234
/********************************************************************

0 commit comments

Comments
 (0)