Commit d090a330 authored by Ralf Habacker's avatar Ralf Habacker

* dbus/dbus-sysdeps-win.c (_dbus_printf_string_upper_bound): compile fix for...

* dbus/dbus-sysdeps-win.c (_dbus_printf_string_upper_bound): compile fix for MS Platform SDK 6  patch from Michael Luschas <mluschas@gmail.com>
parent 90e35e17
2007-05-14 Ralf Habacker <ralf.habacker@freenet.de>
* dbus/dbus-sysdeps-win.c (_dbus_printf_string_upper_bound):
compile fix for MS Platform SDK 6
patch from Michael Luschas <mluschas@gmail.com>
2007-05-10 John (J5) Palmieri <johnp@redhat.com>
* dbus-1.pc.in: add daemondir to pc file
......
......@@ -1609,12 +1609,12 @@ int _dbus_printf_string_upper_bound (const char *format,
*/
char p[1024];
int len;
len = vsnprintf (p, sizeof(p)-1, format, args);
len = _vsnprintf (p, sizeof(p)-1, format, args);
if (len == -1) // try again
{
char *p;
p = malloc (strlen(format)*3);
len = vsnprintf (p, sizeof(p)-1, format, args);
len = _vsnprintf (p, sizeof(p)-1, format, args);
free(p);
}
return len;
......
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