SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
33
security/mcrypt/patches/patch-src_errors_c
Normal file
33
security/mcrypt/patches/patch-src_errors_c
Normal file
|
@ -0,0 +1,33 @@
|
|||
Format strings, http://seclists.org/oss-sec/2012/q3/396
|
||||
|
||||
--- src/errors.c.orig Thu Sep 6 22:24:15 2012
|
||||
+++ src/errors.c Thu Sep 6 22:24:34 2012
|
||||
@@ -24,24 +24,24 @@ extern int quiet;
|
||||
|
||||
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);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue