projects
/
ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ust_safe_snprintf should check print format
[ust.git]
/
include
/
usterr.h
diff --git
a/include/usterr.h
b/include/usterr.h
index 0f6d3608bdbdcc6b859c804c98508fcc0d35727c..3ec7ae0dd697d1d7d6fd073d1d98762758131f92 100644
(file)
--- a/
include/usterr.h
+++ b/
include/usterr.h
@@
-25,6
+25,8
@@
#include <stdarg.h>
#include <stdio.h>
#include <stdarg.h>
#include <stdio.h>
+#include <ust/core.h>
+
#include "share.h"
#ifndef UST_COMPONENT
#include "share.h"
#ifndef UST_COMPONENT
@@
-40,7
+42,8
@@
* signal handlers, so we must use a print method which is signal safe.
*/
* 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...) \
{ \
#define sigsafe_print_err(fmt, args...) \
{ \
This page took
0.023348 seconds
and
4
git commands to generate.