mirror of
https://github.com/libssh2/libssh2.git
synced 2025-11-23 01:22:37 +03:00
sftp_attrsize: protect the macro argument with proper parentheses
This commit is contained in:
@@ -94,10 +94,10 @@ static int sftp_close_handle(LIBSSH2_SFTP_HANDLE *handle);
|
|||||||
*/
|
*/
|
||||||
#define sftp_attrsize(f) \
|
#define sftp_attrsize(f) \
|
||||||
(4 + /* flags(4) */ \
|
(4 + /* flags(4) */ \
|
||||||
((f & LIBSSH2_SFTP_ATTR_SIZE)?8:0) + \
|
(((f) & LIBSSH2_SFTP_ATTR_SIZE)?8:0) + \
|
||||||
((f & LIBSSH2_SFTP_ATTR_UIDGID)?8:0) + \
|
(((f) & LIBSSH2_SFTP_ATTR_UIDGID)?8:0) + \
|
||||||
((f & LIBSSH2_SFTP_ATTR_PERMISSIONS)?4:0) + \
|
(((f) & LIBSSH2_SFTP_ATTR_PERMISSIONS)?4:0) + \
|
||||||
((f & LIBSSH2_SFTP_ATTR_ACMODTIME)?8:0)) /* atime + mtime as u32 */
|
(((f) & LIBSSH2_SFTP_ATTR_ACMODTIME)?8:0)) /* atime + mtime as u32 */
|
||||||
|
|
||||||
/* _libssh2_store_u64
|
/* _libssh2_store_u64
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user