mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-22 18:08:23 +00:00
Add restrict qualifiers to strlcpy_no_slash
It's just strlcpy except it replaces '/' with '_'.
This commit is contained in:
parent
67e328d6f8
commit
7fc7d69532
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user