You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
--- 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);
|
|
|
|
}
|