summaryrefslogtreecommitdiffabout
path: root/src/report.c
authorSergey Poznyakoff <gray@gnu.org.ua>2011-05-10 17:27:18 (GMT)
committer Sergey Poznyakoff <gray@gnu.org.ua>2011-05-10 17:40:37 (GMT)
commit3bf61e7ab82244cdeb00c6ba6d602d3cad9b64d4 (patch) (side-by-side diff)
tree65bcc3fc7425af543a9f3a393abe5cdc3e11112c /src/report.c
parent212825a21d8fa8ec90d7c5b9a1460f845958d445 (diff)
downloadwydawca-3bf61e7ab82244cdeb00c6ba6d602d3cad9b64d4.tar.gz
wydawca-3bf61e7ab82244cdeb00c6ba6d602d3cad9b64d4.tar.bz2
Remove vasprintf module.
Diffstat (limited to 'src/report.c') (more/less context) (show whitespace changes)
-rw-r--r--src/report.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/report.c b/src/report.c
index 84a9592..b09c7c7 100644
--- a/src/report.c
+++ b/src/report.c
@@ -34,14 +34,17 @@ report_add (const char *fmt, ...)
{
va_list ap;
char *str = NULL;
+ size_t size = 0;
+
va_start (ap, fmt);
- vasprintf (&str, fmt, ap);
+ grecs_vasprintf (&str, &size, fmt, ap);
va_end (ap);
if (str)
{
obstack_grow (&report_stk, str, strlen (str));
obstack_1grow (&report_stk, '\n');
}
+ free (str);
}
void

Return to:

Send suggestions and report system problems to the System administrator.