Blame SOURCES/0165-bus-message-use-define.patch

a3e2b5
From 5d6a8b1b9728cfa54c89441a089ffbb156b59648 Mon Sep 17 00:00:00 2001
a3e2b5
From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl>
a3e2b5
Date: Tue, 24 Jul 2018 21:24:53 +0200
a3e2b5
Subject: [PATCH] bus-message: use define
a3e2b5
a3e2b5
(cherry picked from commit f22c308aff556bf5c6599ffcb61e637e366ab232)
a3e2b5
a3e2b5
Resolves: #1696224
a3e2b5
---
a3e2b5
 src/libsystemd/sd-bus/bus-message.c | 2 +-
a3e2b5
 1 file changed, 1 insertion(+), 1 deletion(-)
a3e2b5
a3e2b5
diff --git a/src/libsystemd/sd-bus/bus-message.c b/src/libsystemd/sd-bus/bus-message.c
a3e2b5
index 7392a43a19..81aaa7f59f 100644
a3e2b5
--- a/src/libsystemd/sd-bus/bus-message.c
a3e2b5
+++ b/src/libsystemd/sd-bus/bus-message.c
a3e2b5
@@ -227,7 +227,7 @@ static int message_append_field_string(
a3e2b5
         /* dbus1 doesn't allow strings over 32bit, let's enforce this
a3e2b5
          * globally, to not risk convertability */
a3e2b5
         l = strlen(s);
a3e2b5
-        if (l > (size_t) (uint32_t) -1)
a3e2b5
+        if (l > UINT32_MAX)
a3e2b5
                 return -EINVAL;
a3e2b5
 
a3e2b5
         /* Signature "(yv)" where the variant contains "s" */