diff --git a/lib/krb5/scache.c b/lib/krb5/scache.c index 7a4a73836..a35be0e4b 100644 --- a/lib/krb5/scache.c +++ b/lib/krb5/scache.c @@ -320,7 +320,7 @@ scc_alloc(krb5_context context, const char *name) } } else { _krb5_expand_default_cc_name(context, KRB5_SCACHE_DB, &s->file); - asprintf(&s->name, "unique-%08x", (unsigned int)s); + asprintf(&s->name, "unique-%p", s); } if (s->file == NULL || s->name == NULL) { scc_free(s);