Commit b32aaa8a 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 e7bd2bb8
......@@ -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 */
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