mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-01-14 07:50:19 +01:00
Cope with platforms whose vsnprintf violates both POSIX and C99 - part 1
This commit is contained in:
parent
e7bd2bb848
commit
b32aaa8a57
1 changed files with 3 additions and 0 deletions
|
|
@ -1129,6 +1129,9 @@ _dbus_string_append_printf_valist (DBusString *str,
|
|||
/* Measure the message length without terminating nul */
|
||||
len = _dbus_printf_string_upper_bound (format, args);
|
||||
|
||||
if (len < 0)
|
||||
return FALSE;
|
||||
|
||||
if (!_dbus_string_lengthen (str, len))
|
||||
{
|
||||
/* don't leak the copy */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue