Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Ooops, fmt is second arg.
[simgrid.git] / src / xbt / snprintf.c
index 98bb1c7..9cbbecf 100644 (file)
@@ -62,7 +62,7 @@
 #if !HAVE_VASPRINTF
 #include <assert.h>
 #include <stdarg.h> /* vsnprintf */
-int vasprintf(char** ptr, const char* fmt, va_list ap) XBT_ATTRIB_PRINTF(1, 0);
+int vasprintf(char** ptr, const char* fmt, va_list ap) XBT_ATTRIB_PRINTF(2, 0);
 int vasprintf(char **ptr, const char *fmt, va_list ap)
 {
   size_t str_m;