mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice-common
synced 2026-08-07 20:02:40 +00:00
quic: Fix endianness encoding
The image is going to network and network protocol is little endian so the numbers has to be little endian. Note that this is already done during decoding. Tested on a ppc64 machine. Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Christophe Fergeau <cfergeau@redhat.com>
This commit is contained in:
parent
55070333f6
commit
349a74d7c2
@ -393,7 +393,7 @@ static inline void write_io_word(Encoder *encoder)
|
||||
if (encoder->io_now == encoder->io_end) {
|
||||
more_io_words(encoder);
|
||||
}
|
||||
*(encoder->io_now++) = encoder->io_word;
|
||||
*(encoder->io_now++) = GUINT32_TO_LE(encoder->io_word);
|
||||
}
|
||||
|
||||
static inline void encode(Encoder *encoder, unsigned int word, unsigned int len)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user