alloc_size = 4 * size;
if (alloc_size / 4 != size) {
- error_msg("Out of memory");
+ error_func_msg("Out of memory");
tprints("???");
return -1;
}
} else {
outstr = buf = malloc(alloc_size);
if (!buf) {
- error_msg("Out of memory");
+ error_func_msg("Out of memory");
tprints("???");
return -1;
}
/* Assuming no sane program has millions of iovs */
if ((unsigned)len > 1024*1024 /* insane or negative size? */
|| (iov = malloc(size)) == NULL) {
- error_msg("Out of memory");
+ error_func_msg("Out of memory");
return;
}
if (umoven(tcp, addr, size, iov) >= 0) {
str = malloc(len + 16);
if (!str) {
strsize = -1;
- error_msg("Out of memory");
+ error_func_msg("Out of memory");
return;
}
strsize = len + 16;