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:
@@ -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++ = ' ';
|
||||
}
|
||||
|
Reference in New Issue
Block a user