Fix typo introduced in last commit to fix fill_args() overflow check.

This commit is contained in:
Todd C. Miller
2016-07-16 20:59:59 -06:00
parent 73b0ac4bc1
commit eae8bc9d56

View File

@@ -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;
}