projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix up potential printf's with unsafe format strings
[oweals/busybox.git]
/
libbb
/
perror_msg_and_die.c
diff --git
a/libbb/perror_msg_and_die.c
b/libbb/perror_msg_and_die.c
index 15f46fc05121bcc54f3f1f493adf19f1ebafed25..15615fa22f6e7a34668e4229fd927947e4262705 100644
(file)
--- a/
libbb/perror_msg_and_die.c
+++ b/
libbb/perror_msg_and_die.c
@@
-9,7
+9,7
@@
#include "libbb.h"
#include "libbb.h"
-void bb_perror_msg_and_die(const char *s, ...)
+void
FAST_FUNC
bb_perror_msg_and_die(const char *s, ...)
{
va_list p;
{
va_list p;
@@
-19,3
+19,8
@@
void bb_perror_msg_and_die(const char *s, ...)
va_end(p);
xfunc_die();
}
va_end(p);
xfunc_die();
}
+
+void FAST_FUNC bb_simple_perror_msg_and_die(const char *s)
+{
+ bb_perror_msg_and_die("%s", s);
+}