From 1570f379dffe6916e05c03acb10891c2caaf9ad7 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Sun, 13 Jul 2025 11:46:17 +0200 Subject: [PATCH] fix: macOS build issue --- plugins/remote/source/content/helpers/sftp_client.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/remote/source/content/helpers/sftp_client.cpp b/plugins/remote/source/content/helpers/sftp_client.cpp index f61ed3095..da6f05ba0 100644 --- a/plugins/remote/source/content/helpers/sftp_client.cpp +++ b/plugins/remote/source/content/helpers/sftp_client.cpp @@ -269,7 +269,7 @@ namespace hex::plugin::remote { if (offset > size || buffer.empty()) return 0; - ssize_t n = libssh2_sftp_read(m_handle, reinterpret_cast(buffer.data()), std::min(buffer.size_bytes(), size - offset)); + ssize_t n = libssh2_sftp_read(m_handle, reinterpret_cast(buffer.data()), std::min(buffer.size_bytes(), size - offset)); if (n < 0) return 0; if (n == 0)