Add function name to "unable to allocate memory" warnings.

This commit is contained in:
Todd C. Miller
2015-06-19 14:51:17 -06:00
parent dc883f2454
commit c36415417f
37 changed files with 137 additions and 134 deletions

View File

@@ -74,7 +74,7 @@ linux_audit_command(char *argv[], int result)
size += strlen(*av) + 1;
command = cp = malloc(size);
if (command == NULL) {
sudo_warn(U_("unable to allocate memory"));
sudo_warnx(U_("%s: %s"), __func__, U_("unable to allocate memory"));
goto done;
}
for (av = argv; *av != NULL; av++) {