Align the XML-RPC command stack so torrent::Object is not constructed on a 4-byte boundary.

This commit is contained in:
Silas Mariusz
2026-09-28 10:26:57 +00:00
committed by Jari Sundell
parent d59765fda4
commit 4c0535b1fa
+1 -1
View File
@@ -108,7 +108,7 @@ public:
static stack_type* from_data(char* data) { return reinterpret_cast<stack_type*>(data); } static stack_type* from_data(char* data) { return reinterpret_cast<stack_type*>(data); }
char buffer[sizeof(torrent::Object) * max_arguments]; alignas(optimal_alignment) char buffer[sizeof(torrent::Object) * max_arguments];
}; };
command_base() : m_copy_helper(nullptr), m_dest_helper(nullptr) {} command_base() : m_copy_helper(nullptr), m_dest_helper(nullptr) {}