(krb5_mk_safe): sizeof(buf) -> buf_size, buf is now a `u_char *'

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5378 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1999-02-16 23:36:43 +00:00
parent 273f1e032c
commit 0068c0e1f3

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright (c) 1997, 1998 Kungliga Tekniska H<>gskolan * Copyright (c) 1997, 1998, 1999 Kungliga Tekniska H<>gskolan
* (Royal Institute of Technology, Stockholm, Sweden). * (Royal Institute of Technology, Stockholm, Sweden).
* All rights reserved. * All rights reserved.
* *
@@ -114,7 +114,7 @@ krb5_mk_safe(krb5_context context,
free (buf); free (buf);
return ENOMEM; return ENOMEM;
} }
memcpy (outbuf->data, buf + sizeof(buf) - len, len); memcpy (outbuf->data, buf + buf_size - len, len);
free (buf); free (buf);
return 0; return 0;
} }