SDL/src
Simon McVittie c13e74be6b progress: Correct calls to dbus_message_iter_open_container with variants
As documented, the contained_signature is to be passed in as a
nul-terminated C string.

For basic types that are represented by a single character, on
little-endian platforms, putting the type in the least significant
byte of an int and casting its address to `char *` happens to result in
a valid string, because the int's in-memory representation looks like
`(char []){ 'b', 0, 0, 0 }`. However, on big-endian platforms, the int's
in-memory representation is `(char []){ 0, 0, 0, 'b' }` which is not
a valid type for a D-Bus variant to hold (it is interpreted as an empty
string, and variants are not allowed to be empty).

Instead, do this the straightforward way, with a mnemonic string and
no casts (in the same style used in `SDL_portaldialog`).

Fixes: 3f2226a9 "Add progress bar support for Linux"
Resolves: https://github.com/libsdl-org/SDL/issues/13953
Bug-Debian: https://bugs.debian.org/1115705
Signed-off-by: Simon McVittie <smcv@collabora.com>
2025-09-23 08:19:25 -07:00
..
atomic remove watcom compiler support from private sources 2025-09-20 03:47:02 +03:00
audio wav: Patched to compile on Visual Studio. 2025-09-22 10:37:52 -04:00
camera Use new parameter validation macro 2025-09-18 20:58:32 -07:00
core progress: Correct calls to dbus_message_iter_open_container with variants 2025-09-23 08:19:25 -07:00
cpuinfo remove watcom compiler support from private sources 2025-09-20 03:47:02 +03:00
dialog Use zenity messageboxes by default on X11 2025-09-20 08:37:51 -07:00
dynapi remove watcom compiler support from private sources 2025-09-20 03:47:02 +03:00
events Fixed SDL_RunOnMainThread() on Android 2025-09-21 13:46:11 -07:00
filesystem Fixed filesystem operations on iOS 2025-09-22 10:09:30 -07:00
gpu Use new parameter validation macro 2025-09-18 20:58:32 -07:00
haptic Use new parameter validation macro 2025-09-18 20:58:32 -07:00
hidapi Fixed a memory leak in fill_device_info_usage() (thanks @digant73) 2025-09-20 09:05:37 -07:00
io Fixed filesystem operations on iOS 2025-09-22 10:09:30 -07:00
joystick Update references to macOS 10.16 to macOS 11.0 2025-09-22 11:32:32 -07:00
libm remove watcom compiler support from private sources 2025-09-20 03:47:02 +03:00
loadso Use new parameter validation macro 2025-09-18 20:58:32 -07:00
locale Fix support for Windows XP and up (#13904) 2025-09-08 13:00:26 -07:00
main main: Fixed crashes if specifying hints to Emscripten as URL options. 2025-09-22 11:57:42 -04:00
misc Use new parameter validation macro 2025-09-18 20:58:32 -07:00
power
process Use posix_spawn_file_actions_addchdir_np() on macOS 2025-09-19 08:00:03 -07:00
render [SDL3] [PS2] Framebuffer resolution + 240p/480p + PAL support (#13993) 2025-09-21 07:50:14 -07:00
sensor Use new parameter validation macro 2025-09-18 20:58:32 -07:00
stdlib remove watcom compiler support from private sources 2025-09-20 03:47:02 +03:00
storage Use new parameter validation macro 2025-09-18 20:58:32 -07:00
test The names of keyboards and mice are valid after they've been removed 2025-09-11 20:07:55 -07:00
thread Use new parameter validation macro 2025-09-18 20:58:32 -07:00
time Use new parameter validation macro 2025-09-18 20:58:32 -07:00
timer Use new parameter validation macro 2025-09-18 20:58:32 -07:00
tray tray(Win32): re-add the tray icon upon taskbar restart (#13261) 2025-09-22 06:47:25 -07:00
video Use an empty bitmap for the blank cursor on macOS 2025-09-22 19:14:38 -07:00
SDL.c remove watcom compiler support from private sources 2025-09-20 03:47:02 +03:00
SDL_assert.c remove watcom compiler support from private sources 2025-09-20 03:47:02 +03:00
SDL_assert_c.h
SDL_error.c
SDL_error_c.h
SDL_guid.c
SDL_hashtable.c Use new parameter validation macro 2025-09-18 20:58:32 -07:00
SDL_hashtable.h
SDL_hints.c Use new parameter validation macro 2025-09-18 20:58:32 -07:00
SDL_hints_c.h
SDL_internal.h remove watcom compiler support from private sources 2025-09-20 03:47:02 +03:00
SDL_list.c
SDL_list.h
SDL_log.c Use new parameter validation macro 2025-09-18 20:58:32 -07:00
SDL_log_c.h
SDL_properties.c Use new parameter validation macro 2025-09-18 20:58:32 -07:00
SDL_properties_c.h
SDL_utils.c Make SDL_ObjectValid() inline for performance (thanks @mechakotik!) 2025-09-18 20:58:32 -07:00
SDL_utils_c.h Make SDL_ObjectValid() inline for performance (thanks @mechakotik!) 2025-09-18 20:58:32 -07:00