fatalx_nodebug(_("internal error, tried to emalloc(0)"));
if ((ptr = malloc(size)) == NULL)
- fatalx_nodebug(NULL);
+ fatal_nodebug(NULL);
return ptr;
}
size *= nmemb;
if ((ptr = malloc(size)) == NULL)
- fatalx_nodebug(NULL);
+ fatal_nodebug(NULL);
return ptr;
}
size *= nmemb;
}
if ((ptr = malloc(size)) == NULL)
- fatalx_nodebug(NULL);
+ fatal_nodebug(NULL);
memset(ptr, 0, size);
return ptr;
}
ptr = ptr ? realloc(ptr, size) : malloc(size);
if (ptr == NULL)
- fatalx_nodebug(NULL);
+ fatal_nodebug(NULL);
return ptr;
}
size *= nmemb;
ptr = ptr ? realloc(ptr, size) : malloc(size);
if (ptr == NULL)
- fatalx_nodebug(NULL);
+ fatal_nodebug(NULL);
return ptr;
}
size = nmemb * msize;
ptr = ptr ? realloc(ptr, size) : malloc(size);
if (ptr == NULL)
- fatalx_nodebug(NULL);
+ fatal_nodebug(NULL);
if (nmemb > onmemb) {
size = (nmemb - onmemb) * msize;
memset((char *)ptr + (onmemb * msize), 0, size);
va_end(ap);
if (len == -1)
- fatalx_nodebug(NULL);
+ fatal_nodebug(NULL);
return len;
}
int len;
if ((len = vasprintf(ret, format, args)) == -1)
- fatalx_nodebug(NULL);
+ fatal_nodebug(NULL);
return len;
}
user_info[i] = fmt_string("user", pw->pw_name);
if (user_info[i] == NULL)
- fatalx(NULL);
+ fatal(NULL);
ud->username = user_info[i] + sizeof("user=") - 1;
/* Stash user's shell for use with the -s flag; don't pass to plugin. */
if (getcwd(cwd, sizeof(cwd)) != NULL) {
user_info[++i] = fmt_string("cwd", cwd);
if (user_info[i] == NULL)
- fatalx(NULL);
+ fatal(NULL);
ud->cwd = user_info[i] + sizeof("cwd=") - 1;
}
if ((cp = get_process_ttyname()) != NULL) {
user_info[++i] = fmt_string("tty", cp);
if (user_info[i] == NULL)
- fatalx(NULL);
+ fatal(NULL);
ud->tty = user_info[i] + sizeof("tty=") - 1;
efree(cp);
}
strlcpy(host, "localhost", sizeof(host));
user_info[++i] = fmt_string("host", host);
if (user_info[i] == NULL)
- fatalx(NULL);
+ fatal(NULL);
ud->host = user_info[i] + sizeof("host=") - 1;
get_ttysize(&ud->ts_lines, &ud->ts_cols);
#endif
details->pw = getpwuid(details->euid);
if (details->pw != NULL && (details->pw = pw_dup(details->pw)) == NULL)
- fatalx(NULL);
+ fatal(NULL);
#ifdef HAVE_SETAUTHDB
aix_restoreauthdb();
#endif