mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-31 06:15:37 +00:00
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:
@@ -85,7 +85,7 @@ struct sudo_conv_callback {
|
||||
|
||||
typedef int (*sudo_conv_t)(int num_msgs, const struct sudo_conv_message msgs[],
|
||||
struct sudo_conv_reply replies[], struct sudo_conv_callback *callback);
|
||||
typedef int (*sudo_printf_t)(int msg_type, const char *fmt, ...);
|
||||
typedef int (*sudo_printf_t)(int msg_type, const char * restrict fmt, ...);
|
||||
|
||||
/*
|
||||
* Hooks allow a plugin to hook into specific sudo and/or libc functions.
|
||||
|
Reference in New Issue
Block a user