Commit fa1a85e1 authored by Simon McVittie's avatar Simon McVittie Committed by Ralf Habacker
Browse files

Cope with platforms whose vsnprintf violates both POSIX and C99 - part 1

parent 7b63fe3c
......@@ -1255,6 +1255,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 */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment