From: John Kohl Date: Fri, 19 Jul 1991 16:53:13 +0000 (+0000) Subject: make input a krb5_data rather than null-term string X-Git-Tag: krb5-1.0-beta2~274 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=898ab99cba4e744a6d5443b2fb8a259fde89824b;p=krb5.git make input a krb5_data rather than null-term string git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2188 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/krb/srv_rcache.c b/src/lib/krb5/krb/srv_rcache.c index 77380c89d..918e72965 100644 --- a/src/lib/krb5/krb/srv_rcache.c +++ b/src/lib/krb5/krb/srv_rcache.c @@ -35,21 +35,21 @@ static char rcsid_srv_rcache_c[] = krb5_error_code krb5_get_server_rcache(piece, rcptr) -const char *piece; +const krb5_data *piece; krb5_rcache *rcptr; { krb5_rcache rcache; char *cachename; extern krb5_deltat krb5_clockskew; krb5_error_code retval; - int len = strlen(piece); + int len = piece->length; if (rcache = (krb5_rcache) malloc(sizeof(*rcache))) { if (!(retval = krb5_rc_resolve_type(&rcache, "dfl"))) { if (cachename = malloc(len+1+3)) { strcpy(cachename, "rc_"); - strcat(cachename, piece); + strncat(cachename, piece->data, len); cachename[len+3] = '\0'; if (!(retval = krb5_rc_resolve(rcache, cachename))) {