Use common printf format when warning of buffer overflow prevention.

This commit is contained in:
Todd C. Miller
2014-03-31 15:58:24 -06:00
parent e0415632e2
commit a1240a5417
2 changed files with 7 additions and 7 deletions

View File

@@ -171,7 +171,7 @@ fill_args(const char *s, int len, int addspace)
if (addspace)
*p++ = ' ';
if (strlcpy(p, s, arg_size - (p - sudoerslval.command.args)) != (size_t)len) {
warningx(U_("fill_args: buffer overflow")); /* paranoia */
warningx(U_("internal error, %s overflow"), __func__);
sudoerserror(NULL);
debug_return_bool(false);
}