Remove spurious slash when expanding path tokens

Path tokens that expand to directories are expected to end in a slash.
This commit is contained in:
Asanka Herath
2010-05-26 10:21:54 -04:00
parent 500603506f
commit 6d132f1d7d

View File

@@ -447,7 +447,7 @@ krb5_config_parse_file_multi (krb5_context context,
fname = newfname; fname = newfname;
} }
#else /* KRB5_USE_PATH_TOKENS */ #else /* KRB5_USE_PATH_TOKENS */
asprintf(&newfname, "%%{USERCONFIG}/%s", &fname[1]); asprintf(&newfname, "%%{USERCONFIG}%s", &fname[1]);
if (newfname == NULL) { if (newfname == NULL) {
krb5_set_error_message(context, ENOMEM, krb5_set_error_message(context, ENOMEM,
N_("malloc: out of memory", "")); N_("malloc: out of memory", ""));