Give every printf-like function restrict qualifiers
The format value has to be a string literal, every time. Otherwise, you are not using these functions correctly. To reinforce this fact, I putrestrict over every non-contrib example of this I could find.
This commit is contained in:
@@ -33,7 +33,7 @@
|
||||
#include "pathnames.h"
|
||||
|
||||
static int
|
||||
sudo_printf_int(int msg_type, const char *fmt, ...)
|
||||
sudo_printf_int(int msg_type, const char * restrict fmt, ...)
|
||||
{
|
||||
FILE *fp = stdout;
|
||||
FILE *ttyfp = NULL;
|
||||
|
Reference in New Issue
Block a user