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