Ticket #44 (closed defect)

Opened 10 years ago

Last modified 10 years ago

data type for offset in libssh2_sftp_seek

Reported by: anonymous Owned by:
Priority: normal Milestone:
Component: API Version:
Keywords: Cc: bagder
Blocked By: Blocks:


The data type for the offset in libssh2_sftp_seek() should be libssh2_uint64_t, not size_t, because size_t is probably limited to 32bit. The internal variable for the offset has the correct data type.

The prototype should be:

LIBSSH2_API void libssh2_sftp_seek(LIBSSH2_SFTP_HANDLE *handle, libssh2_uint64_t offset);

Change History

comment:1 Changed 10 years ago by bagder

See #1815692

Note: See TracTickets for help on using tickets.