/*
* reallocing snprintf with offset
*/
-
static int
raosnprintf(char **buf, size_t *size, ssize_t *offset, char *fmt, ...)
{
}
}
}
- buf[(*len_p)++] = '\n';
- buf[(*len_p)] = 0;
+
+ if(!raosnprintf(&buf, &bufsize, len_p, "\n")) goto err_nomem;
return buf;
err_nomem: