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:
@@ -193,7 +193,7 @@ fake_conversation_with_suspend(int num_msgs, const struct sudo_conv_message msgs
|
||||
}
|
||||
|
||||
int
|
||||
fake_printf(int msg_type, const char *fmt, ...)
|
||||
fake_printf(int msg_type, const char * restrict fmt, ...)
|
||||
{
|
||||
int rc = -1;
|
||||
va_list args;
|
||||
|
Reference in New Issue
Block a user