summaryrefslogtreecommitdiffstats
path: root/python_modules/codegen.py
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2010-07-20 11:34:23 +0200
committerMarc-André Lureau <marcandre.lureau@gmail.com>2012-03-20 15:25:49 +0100
commitaae971c6abff7deacc9ffcde8aab87ded08b24c3 (patch)
treee163c7c6c98b7396c4bdfd471cd718e1c151f2dd /python_modules/codegen.py
parent7861ba0921cae2a8616fa625693e3a887da43f94 (diff)
downloadspice-protocol-aae971c6abff7deacc9ffcde8aab87ded08b24c3.tar.gz
spice-protocol-aae971c6abff7deacc9ffcde8aab87ded08b24c3.tar.xz
spice-protocol-aae971c6abff7deacc9ffcde8aab87ded08b24c3.zip
demarshaller: Fix palette marshalling
It turns out that using base + sizeof(struct) is not a good way to access an array at the end of a struct. For SpicePalette sizeof is 16, but offset of ents is 12. Using this calculation in the demarshaller breaks things badly, so now we use the actual array member.
Diffstat (limited to 'python_modules/codegen.py')
0 files changed, 0 insertions, 0 deletions