From 7fc7d69532e374e18a22abe64f3fca1afb72112b Mon Sep 17 00:00:00 2001 From: Rose <83477269+AtariDreams@users.noreply.github.com> Date: Sat, 13 Jan 2024 16:36:27 -0500 Subject: [PATCH] Add restrict qualifiers to strlcpy_no_slash It's just strlcpy except it replaces '/' with '_'. --- plugins/sudoers/iolog_path_escapes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/sudoers/iolog_path_escapes.c b/plugins/sudoers/iolog_path_escapes.c index d234c5532..1abc68ee1 100644 --- a/plugins/sudoers/iolog_path_escapes.c +++ b/plugins/sudoers/iolog_path_escapes.c @@ -37,7 +37,7 @@ * Like strlcpy(3) but replaces '/' with '_'. */ static size_t -strlcpy_no_slash(char *dst, const char *src, size_t size) +strlcpy_no_slash(char * restrict dst, const char * restrict src, size_t size) { size_t len = 0; char ch;