diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2018-07-24 21:24:53 +0200 |
---|---|---|
committer | Lukáš Nykrýn <lnykryn@redhat.com> | 2019-05-03 12:50:30 +0200 |
commit | 5d6a8b1b9728cfa54c89441a089ffbb156b59648 (patch) | |
tree | 7e8c8d6b1c64a9294285574e4d0a001ed3a157bb | |
parent | d28abe1a4a38a8d0bd140fd19bde2f5f165a922e (diff) | |
download | systemd-5d6a8b1b9728cfa54c89441a089ffbb156b59648.tar.gz |
bus-message: use define
(cherry picked from commit f22c308aff556bf5c6599ffcb61e637e366ab232)
Resolves: #1696224
-rw-r--r-- | src/libsystemd/sd-bus/bus-message.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd/sd-bus/bus-message.c b/src/libsystemd/sd-bus/bus-message.c index 7392a43a19..81aaa7f59f 100644 --- a/src/libsystemd/sd-bus/bus-message.c +++ b/src/libsystemd/sd-bus/bus-message.c @@ -227,7 +227,7 @@ static int message_append_field_string( /* dbus1 doesn't allow strings over 32bit, let's enforce this * globally, to not risk convertability */ l = strlen(s); - if (l > (size_t) (uint32_t) -1) + if (l > UINT32_MAX) return -EINVAL; /* Signature "(yv)" where the variant contains "s" */ |