2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-22 09:57:41 +00:00

Add restrict qualifiers to strlcpy_no_slash

It's just strlcpy except it replaces '/' with '_'.
This commit is contained in:
Rose 2024-01-13 16:36:27 -05:00 committed by Todd C. Miller
parent 67e328d6f8
commit 7fc7d69532

View File

@ -37,7 +37,7 @@
* Like strlcpy(3) but replaces '/' with '_'. * Like strlcpy(3) but replaces '/' with '_'.
*/ */
static size_t 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; size_t len = 0;
char ch; char ch;