chiark / gitweb /
bus-util: Fix reading uint32 properties
authorMartin Pitt <martin.pitt@ubuntu.com>
Fri, 1 Apr 2016 12:16:14 +0000 (14:16 +0200)
committerSven Eden <yamakuzure@gmx.net>
Fri, 16 Jun 2017 08:12:57 +0000 (10:12 +0200)
commit368c3719b6eaa0767bbdee84c1f2d2876b83995b
tree04457269d67846da400f0d5bd086b21b2702e416
parent879674e2c9f8138364a839cd251ddd4ec97c7090
bus-util: Fix reading uint32 properties

Fix copy&paste bug in map_basic() to use the correct data type for
SD_BUS_TYPE_UINT32. Before we were copying the wrong 32 bits into the
destination pointer, resulting in complete garbage on big-endian systems.

Fixes #2927
src/shared/bus-util.c