realloc correctly

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5059 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1998-06-30 16:16:22 +00:00
parent 36743cf478
commit a802e57376

View File

@@ -141,7 +141,7 @@ krb5_mk_priv(krb5_context context,
u_char *tmp;
buf_size *= 2;
tmp = realloc (tmp, buf_size);
tmp = realloc (buf, buf_size);
if (tmp == NULL) {
ret = ENOMEM;
goto fail;