Fixed one-byte buffer overflow problem in memcpy found during

code review.

-This line, and those below, will be ignored--

M    linux/get.c
This commit is contained in:
Juan Carlos Luciani 2007-02-01 16:04:28 +00:00
parent d1d93ba218
commit 69f772ed91

View File

@ -296,7 +296,7 @@ AuthTokenIf_GetAuthToken(
else
{
// The buffer provided is large enough, copy the data and return the actual size.
memcpy((void*) pTokenBuf, pEncodedToken, encodedTokenLen + 1);
memcpy((void*) pTokenBuf, pEncodedToken, encodedTokenLen);
// Success
retStatus = CASA_STATUS_SUCCESS;