Cairo-Dock / cairo-dock-core

Core part of Cairo-Dock project.
http://glx-dock.org
GNU General Public License v3.0
191 stars 47 forks source link

Fix alignment for pointers of plugin module instances #40

Closed mtasaka closed 1 month ago

mtasaka commented 1 month ago

When casting pointers inside buffer allocated with g_malloc0 to members in plugin module instance struct, round up such pointers to the places which are properly aligned. Also, round up the total size of allocated buffer accordingly.

Fixes #39 .

dkondor commented 1 month ago

Makes sense, thank you!