ust_safe_snprintf should check print format
[ust.git] / include / usterr.h
index 0f6d3608bdbdcc6b859c804c98508fcc0d35727c..3ec7ae0dd697d1d7d6fd073d1d98762758131f92 100644 (file)
@@ -25,6 +25,8 @@
 #include <stdarg.h>
 #include <stdio.h>
 
+#include <ust/core.h>
+
 #include "share.h"
 
 #ifndef UST_COMPONENT
@@ -40,7 +42,8 @@
  * signal handlers, so we must use a print method which is signal safe.
  */
 
-extern int ust_safe_snprintf(char *str, size_t n, const char *fmt, ...);
+extern int ust_safe_snprintf(char *str, size_t n, const char *fmt, ...)
+       __attribute__ ((format (printf, 3, 4)));
 
 #define sigsafe_print_err(fmt, args...) \
 { \
This page took 0.022176 seconds and 4 git commands to generate.