ust_safe_snprintf should check print format
authorMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Thu, 10 Feb 2011 17:46:42 +0000 (12:46 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Thu, 10 Feb 2011 17:46:42 +0000 (12:46 -0500)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
include/usterr.h

index f0cdeb02f7d0922b3041e6c76c9028f02a3935f8..3ec7ae0dd697d1d7d6fd073d1d98762758131f92 100644 (file)
@@ -42,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.024022 seconds and 4 git commands to generate.