Reduce the number of "internal error, foo overflow" messages that

need to be translated.
This commit is contained in:
Todd C. Miller
2012-08-10 12:18:38 -04:00
parent afaf5e07fe
commit 241b2395cf
6 changed files with 24 additions and 18 deletions

View File

@@ -78,8 +78,10 @@ linux_audit_command(char *argv[], int result)
command = cp = emalloc(size);
for (av = argv; *av != NULL; av++) {
n = strlcpy(cp, *av, size - (cp - command));
if (n >= size - (cp - command))
errorx(1, _("internal error, linux_audit_command() overflow"));
if (n >= size - (cp - command)) {
errorx(1, _("internal error, %s overflow"),
"linux_audit_command()");
}
cp += n;
*cp++ = ' ';
}