- Mike Protts filed the bug report #1908724 that identified and fixed a problem

with SFTP stat on files >4GB in size. Previously it used 32bit math only.
This commit is contained in:
Daniel Stenberg 2008-03-07 11:55:07 +00:00
parent a55e6c10c9
commit f56daac7fe
2 changed files with 5 additions and 1 deletions

4
NEWS
View File

@ -1,5 +1,9 @@
Version 0.19 ( )
-------------------------------
- Mike Protts filed the bug report #1908724 that identified and fixed a problem
with SFTP stat on files >4GB in size. Previously it used 32bit math only.
- Removed a stderr debug message that was accidentally left in (bug #1863153)

View File

@ -62,7 +62,7 @@ libssh2_ntohu64(const unsigned char *buf)
msl = (buf[0] << 24) | (buf[1] << 16) | (buf[2] << 8) | buf[3];
lsl = (buf[4] << 24) | (buf[5] << 16) | (buf[6] << 8) | buf[7];
return ((msl * 65536) * 65536) + lsl;
return ((libssh2_uint64_t)msl <<32) | lsl;
}
/* }}} */