Make "internal error, %s overflow" arguments consistent, using

__func__ where possible (when debugging is allowed).
This commit is contained in:
Todd C. Miller
2014-04-01 16:42:13 -06:00
parent a1240a5417
commit 6a295400b7
7 changed files with 13 additions and 14 deletions

View File

@@ -86,8 +86,7 @@ linux_audit_command(char *argv[], int result)
for (av = argv; *av != NULL; av++) {
n = strlcpy(cp, *av, size - (cp - command));
if (n >= size - (cp - command)) {
warningx(U_("internal error, %s overflow"),
"linux_audit_command()");
warningx(U_("internal error, %s overflow"), __func__);
goto done;
}
cp += n;