Output the who_am_i() info in out-of-memory() and overflow_exit().

This commit is contained in:
Wayne Davison committed 2006-09-24 03:12:24 +00:00
1 parent ea0ea357f4
commit 2cd421d809
1 file changed
+2 -2
+2 -2
View File
@@ -111,13 +111,13 @@ void print_child_argv(char **cmd)
void out_of_memory(char *str)
{
rprintf(FERROR, "ERROR: out of memory in %s\n", str);
rprintf(FERROR, "ERROR: out of memory in %s [%s]\n", str, who_am_i());
exit_cleanup(RERR_MALLOC);
}
void overflow_exit(char *str)
{
rprintf(FERROR, "ERROR: buffer overflow in %s\n", str);
rprintf(FERROR, "ERROR: buffer overflow in %s [%s]\n", str, who_am_i());
exit_cleanup(RERR_MALLOC);
}