small fixes for DBUS_USE_OUTPUT_DEBUG_STRING code
authorRomain Pokrzywka <romain@kdab.com>
Tue, 9 Feb 2010 03:16:05 +0000 (21:16 -0600)
committerRalf Habacker <ralf.habacker@freenet.de>
Thu, 25 Feb 2010 17:19:54 +0000 (18:19 +0100)
dbus/dbus-internals.c

index 4cafb26..a33d069 100644 (file)
@@ -30,6 +30,7 @@
 #include <stdlib.h>
 #ifdef DBUS_USE_OUTPUT_DEBUG_STRING
 #include <windows.h>
+#include <mbstring.h>
 #endif
 
 /**
@@ -436,7 +437,7 @@ _dbus_verbose_real (const char *format,
   char buf[1024];
   strcpy(buf,module_name);
 #ifdef DBUS_CPP_SUPPORTS_VARIABLE_MACRO_ARGUMENTS
-  vsprintf (buf+strlen(buf), "[%s(%d):%s] ",_dbus_file_path_extract_elements_from_tail(file,2),line,function);
+  sprintf (buf+strlen(buf), "[%s(%d):%s] ",_dbus_file_path_extract_elements_from_tail(file,2),line,function);
 #endif
   vsprintf (buf+strlen(buf),format, args);
   va_end (args);