strlcpy_expand_host, sudo_getdelim, sudo_realpath: add restrict qualifier

This commit is contained in:
Todd C. Miller
2023-10-17 10:47:43 -06:00
parent 29ddd26793
commit cf9fc5317e
6 changed files with 11 additions and 7 deletions

View File

@@ -53,7 +53,7 @@
* in which case the path which caused trouble is left in (resolved).
*/
char *
sudo_realpath(const char *path, char *resolved)
sudo_realpath(const char * restrict path, char * restrict resolved)
{
struct stat sb;
int idx = 0, nlnk = 0;