Skip to content

Commit 3f12aa1

Browse files
committed
add restrict to copy_string
1 parent 14c2046 commit 3f12aa1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

plugins/sudoers/toke_util.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ static size_t arg_size = 0;
4040
* Requires that dst have at least len + 1 bytes free.
4141
*/
4242
static void
43-
copy_string(char *dst, const char *src, size_t len)
43+
copy_string(char * restrict dst, const char * restrict src, size_t len)
4444
{
4545
const char *end = src + len;
4646
debug_decl(copy_string, SUDOERS_DEBUG_PARSER);

0 commit comments

Comments
 (0)