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 f0cdeb02f7d0922b3041e6c76c9028f02a3935f8..3ec7ae0dd697d1d7d6fd073d1d98762758131f92 100644
(file)
--- a/
include/usterr.h
+++ b/
include/usterr.h
@@
-42,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.024358 seconds
and
4
git commands to generate.