mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-10-04 21:29:21 +00:00
Align the XML-RPC command stack so torrent::Object is not constructed on a 4-byte boundary.
This commit is contained in:
committed by
Jari Sundell
parent
d59765fda4
commit
4c0535b1fa
+1
-1
@@ -108,7 +108,7 @@ public:
|
||||
|
||||
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) {}
|
||||
|
||||
Reference in New Issue
Block a user