mirror of
https://git.busybox.net/buildroot.git
synced 2024-12-13 15:23:27 +08:00
298cd8eaa2
Autogenerated from rename-patch.py (http://patchwork.ozlabs.org/patch/403345) Signed-off-by: Samuel Martin <s.martin49@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
36 lines
603 B
Diff
36 lines
603 B
Diff
Patch taken from gentoo.
|
|
|
|
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
|
|
|
|
--- a/src/errors.c
|
|
+++ b/src/errors.c
|
|
@@ -25,24 +25,24 @@
|
|
|
|
void err_quit(char *errmsg)
|
|
{
|
|
- fprintf(stderr, errmsg);
|
|
+ fprintf(stderr, "%s", errmsg);
|
|
exit(-1);
|
|
}
|
|
|
|
void err_warn(char *errmsg)
|
|
{
|
|
if (quiet <= 1)
|
|
- fprintf(stderr, errmsg);
|
|
+ fprintf(stderr, "%s", errmsg);
|
|
}
|
|
|
|
void err_info(char *errmsg)
|
|
{
|
|
if (quiet == 0)
|
|
- fprintf(stderr, errmsg);
|
|
+ fprintf(stderr, "%s", errmsg);
|
|
}
|
|
|
|
void err_crit(char *errmsg)
|
|
{
|
|
if (quiet <= 2)
|
|
- fprintf(stderr, errmsg);
|
|
+ fprintf(stderr, "%s", errmsg);
|
|
}
|