bus-message: use define
This commit is contained in:
parent
9c65778d61
commit
f22c308aff
|
@ -225,7 +225,7 @@ static int message_append_field_string(
|
||||||
/* dbus1 doesn't allow strings over 32bit, let's enforce this
|
/* dbus1 doesn't allow strings over 32bit, let's enforce this
|
||||||
* globally, to not risk convertability */
|
* globally, to not risk convertability */
|
||||||
l = strlen(s);
|
l = strlen(s);
|
||||||
if (l > (size_t) (uint32_t) -1)
|
if (l > UINT32_MAX)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
/* Signature "(yv)" where the variant contains "s" */
|
/* Signature "(yv)" where the variant contains "s" */
|
||||||
|
|
Loading…
Reference in New Issue