mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-29 13:28:10 +00:00
Fix typo introduced in last commit to fix fill_args() overflow check.
This commit is contained in:
parent
73b0ac4bc1
commit
eae8bc9d56
@ -154,7 +154,7 @@ fill_args(const char *s, size_t len, int addspace)
|
||||
if (addspace)
|
||||
*p++ = ' ';
|
||||
len = arg_size - (p - sudoerslval.command.args);
|
||||
if (strlcpy(p, s, len) != len) {
|
||||
if (strlcpy(p, s, len) >= len) {
|
||||
sudo_warnx(U_("internal error, %s overflow"), __func__);
|
||||
goto bad;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user