Zero string.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2627 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Johan Danielsson
1997-07-25 15:29:12 +00:00
parent 5ee8d92f1c
commit b5b6216a77
2 changed files with 2 additions and 2 deletions

View File

@@ -66,7 +66,7 @@ static void
append_hex(char *str, krb5_data *data)
{
int i;
char *p = malloc(data->length * 2 + 1);
char *p = calloc(1, data->length * 2 + 1);
for(i = 0; i < data->length; i++)
sprintf(p + 2 * i, "%02x", ((u_char*)data->data)[i]);
strcat(str, p);

View File

@@ -66,7 +66,7 @@ static void
append_hex(char *str, krb5_data *data)
{
int i;
char *p = malloc(data->length * 2 + 1);
char *p = calloc(1, data->length * 2 + 1);
for(i = 0; i < data->length; i++)
sprintf(p + 2 * i, "%02x", ((u_char*)data->data)[i]);
strcat(str, p);