(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:
@@ -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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user