wok diff dbus-c++/stuff/dbus-c++-0.9.0-copy_data_from_received_message.patch @ rev 25781

Add ffado and depends/bdepends
author Stanislas Leduc <shann@slitaz.org>
date Mon Sep 23 18:13:10 2024 +0200 (11 months ago)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dbus-c++/stuff/dbus-c++-0.9.0-copy_data_from_received_message.patch	Mon Sep 23 18:13:10 2024 +0200
     1.3 @@ -0,0 +1,27 @@
     1.4 +From 2a770f61c060d19f7fe118c2a066306fa3e9ec3d Mon Sep 17 00:00:00 2001
     1.5 +From: =?UTF-8?q?Th=C3=A9o=20Goudout?= <theo.goudout@mydatakeeper.fr>
     1.6 +Date: Thu, 1 Aug 2019 08:24:29 +0000
     1.7 +Subject: [PATCH] Fix assert fail when copying data from received message
     1.8 +
     1.9 +---
    1.10 + src/message.cpp | 4 +++-
    1.11 + 1 file changed, 3 insertions(+), 1 deletion(-)
    1.12 +
    1.13 +diff --git a/src/message.cpp b/src/message.cpp
    1.14 +index 3f0cac4..1c4caab 100644
    1.15 +--- a/src/message.cpp
    1.16 ++++ b/src/message.cpp
    1.17 +@@ -350,7 +350,9 @@ void MessageIter::copy_data(MessageIter &to)
    1.18 +       (
    1.19 +         (DBusMessageIter *) & (to._iter),
    1.20 +         from.type(),
    1.21 +-        from.type() == DBUS_TYPE_VARIANT ? NULL : sig,
    1.22 ++        (from.type() == DBUS_TYPE_STRUCT || from.type() == DBUS_TYPE_DICT_ENTRY)
    1.23 ++            ? NULL
    1.24 ++            : sig,
    1.25 +         (DBusMessageIter *) & (to_container._iter)
    1.26 +       );
    1.27 + 
    1.28 +-- 
    1.29 +2.22.0
    1.30 +