From: Miro Jurisic Date: Fri, 11 Feb 2000 01:57:36 +0000 (+0000) Subject: Fixed lxs' fix: strlen (x) + 1 instead of strlen (x+1) X-Git-Tag: krb5-1.2-beta1~87 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a47fb59f6fedf77d018e24db464cf2189ab6a490;p=krb5.git Fixed lxs' fix: strlen (x) + 1 instead of strlen (x+1) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12035 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/ccache/ccapi/ChangeLog b/src/lib/krb5/ccache/ccapi/ChangeLog index 569714493..a97d97f00 100644 --- a/src/lib/krb5/ccache/ccapi/ChangeLog +++ b/src/lib/krb5/ccache/ccapi/ChangeLog @@ -1,3 +1,7 @@ +2000-02-10 Miro Jurisic + + * stdcc_util.c: Fixed lxs' fix + 2000-02-10 Alexandra Ellwood * stdcc_util.c: Added +1 to strlen()'s so that the null terminator diff --git a/src/lib/krb5/ccache/ccapi/stdcc_util.c b/src/lib/krb5/ccache/ccapi/stdcc_util.c index eb9ed7dfc..4262eeddd 100644 --- a/src/lib/krb5/ccache/ccapi/stdcc_util.c +++ b/src/lib/krb5/ccache/ccapi/stdcc_util.c @@ -218,14 +218,14 @@ void dupK5toCC(krb5_context context, krb5_creds *creds, cred_union **cu) * puts it in appl heap with malloc) */ err = krb5_unparse_name(context, creds->client, &tempname); - c->client = malloc(strlen(tempname+1)); + c->client = malloc(strlen(tempname)+1); if (c->client != NULL) strcpy(c->client,tempname); free(tempname); tempname = NULL; err = krb5_unparse_name(context, creds->server, &tempname); - c->server = malloc(strlen(tempname+1)); + c->server = malloc(strlen(tempname)+1); if (c->server != NULL) strcpy(c->server,tempname); free(tempname);