less casting to make it work on LP64 platforms where off_t is signed.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24486 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -271,7 +271,7 @@ krb5_storage_to_data(krb5_storage *sp, krb5_data *data)
|
|||||||
if (pos < 0)
|
if (pos < 0)
|
||||||
return HEIM_ERR_NOT_SEEKABLE;
|
return HEIM_ERR_NOT_SEEKABLE;
|
||||||
size = (size_t)sp->seek(sp, 0, SEEK_END);
|
size = (size_t)sp->seek(sp, 0, SEEK_END);
|
||||||
if (size > ((off_t)((size_t)-1)))
|
if (size > (size_t)-1)
|
||||||
return HEIM_ERR_TOO_BIG;
|
return HEIM_ERR_TOO_BIG;
|
||||||
ret = krb5_data_alloc (data, size);
|
ret = krb5_data_alloc (data, size);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
|
Reference in New Issue
Block a user