Subject: [libssh2] [ libssh2-Bugs-1815692 ] data type for offset in libssh2_sftp_seek

[libssh2] [ libssh2-Bugs-1815692 ] data type for offset in libssh2_sftp_seek

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Mon, 03 Dec 2007 03:07:01 -0800

Bugs item #1815692, was opened at 2007-10-18 13:05
Message generated for change (Comment added) made by bagder
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=703942&aid=1815692&group_id=125852

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: API
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
>Assigned to: Daniel Stenberg (bagder)
Summary: data type for offset in libssh2_sftp_seek

Initial Comment:
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);

----------------------------------------------------------------------

>Comment By: Daniel Stenberg (bagder)
Date: 2007-12-03 12:07

Message:
Logged In: YES
user_id=1110
Originator: NO

I can only agree, unfortunately this will break the ABI and thus require
another SONAME bump...

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=703942&aid=1815692&group_id=125852

-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell. From the desktop to the data center, Linux is going
mainstream. Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
libssh2-devel mailing list
libssh2-devel_at_lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libssh2-devel
Received on 2007-12-03