escape_string_for_filename(idname, escf, sizeof(escf));
GetTempPath(ARRAYLENGTH(tmppath), tmppath);
- StringCbPrintf(tccname, sizeof(tccname), L"FILE:%s\\krb5cc.%s", tmppath, escf);
+ /* The path returned by GetTempPath always ends in a backslash. */
+ StringCbPrintf(tccname, sizeof(tccname), L"FILE:%skrb5cc.%s", tmppath, escf);
StringCbLength(tccname, sizeof(tccname), &cb);
cb += sizeof(wchar_t);
khm_int32
khm_krb5_get_identity_default_ccacheA(khm_handle ident, char * buf, khm_size * pcb) {
- wchar_t wccname[MAX_PATH];
+ wchar_t wccname[KRB5_MAXCCH_CCNAME];
khm_size cbcc;
khm_int32 rv;