Fixed problems found during testing of no mech-info changes.

This commit is contained in:
Juan Carlos Luciani 2006-11-06 08:08:04 +00:00
parent a7ff509dce
commit ff6c1b9993
2 changed files with 3 additions and 3 deletions

View File

@ -211,7 +211,7 @@ AuthTokenIf_GetAuthToken(
pKrbServiceName = malloc(5 /*"host/"*/ + strlen(pHostName) + 1 /*'/0'*/)
if (pKrbServiceName)
{
sprintf("host/%s", pHostName);
sprintf(pKrbServiceName, "host/%s", pHostName);
}
else
{

View File

@ -107,7 +107,7 @@ AuthTokenIf_GetAuthToken(
// Validate input parameters
if (pIfInstance == NULL
|| pContext == NULL
|| pHostName
|| pHostName == NULL
|| pTokenBufLen == NULL
|| (pTokenBuf == NULL && *pTokenBufLen != 0))
{
@ -127,7 +127,7 @@ AuthTokenIf_GetAuthToken(
pKrbServiceName = malloc(5 /*"host/"*/ + strlen(pHostName) + 1 /*'/0'*/);
if (pKrbServiceName)
{
sprintf("host/%s", pHostName);
sprintf(pKrbServiceName, "host/%s", pHostName);
}
else
{