2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 06:15:37 +00:00

Fix compilation on systems without a native strlcpy() function.

This commit is contained in:
Todd C. Miller
2021-01-28 09:15:36 -07:00
parent dceab7d756
commit 8ca47cc99d
2 changed files with 10 additions and 2 deletions

View File

@@ -960,7 +960,7 @@ set_cmnd(void)
*/
user_args = strvec_join(NewArgv + 1, ' ', strlcpy_unescape);
} else {
user_args = strvec_join(NewArgv + 1, ' ', strlcpy);
user_args = strvec_join(NewArgv + 1, ' ', NULL);
}
if (user_args == NULL)
debug_return_int(NOT_FOUND_ERROR);