2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 14:25:15 +00:00

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

@@ -238,7 +238,7 @@ main(int argc, char *argv[])
for (to = user_args, from = argv; *from; from++) {
n = strlcpy(to, *from, size - (to - user_args));
if (n >= size - (to - user_args))
fatalx(U_("internal error, %s overflow"), "init_vars()");
fatalx(U_("internal error, %s overflow"), getprogname());
to += n;
*to++ = ' ';
}