diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2011-05-10 20:27:18 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2011-05-10 20:40:37 +0300 |
commit | 3bf61e7ab82244cdeb00c6ba6d602d3cad9b64d4 (patch) | |
tree | 65bcc3fc7425af543a9f3a393abe5cdc3e11112c /src/report.c | |
parent | 212825a21d8fa8ec90d7c5b9a1460f845958d445 (diff) | |
download | wydawca-3bf61e7ab82244cdeb00c6ba6d602d3cad9b64d4.tar.gz wydawca-3bf61e7ab82244cdeb00c6ba6d602d3cad9b64d4.tar.bz2 |
Remove vasprintf module.
Diffstat (limited to 'src/report.c')
-rw-r--r-- | src/report.c | 5 |
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, ...) | |||
34 | { | 34 | { |
35 | va_list ap; | 35 | va_list ap; |
36 | char *str = NULL; | 36 | char *str = NULL; |
37 | size_t size = 0; | ||
38 | |||
37 | va_start (ap, fmt); | 39 | va_start (ap, fmt); |
38 | vasprintf (&str, fmt, ap); | 40 | grecs_vasprintf (&str, &size, fmt, ap); |
39 | va_end (ap); | 41 | va_end (ap); |
40 | if (str) | 42 | if (str) |
41 | { | 43 | { |
42 | obstack_grow (&report_stk, str, strlen (str)); | 44 | obstack_grow (&report_stk, str, strlen (str)); |
43 | obstack_1grow (&report_stk, '\n'); | 45 | obstack_1grow (&report_stk, '\n'); |
44 | } | 46 | } |
47 | free (str); | ||
45 | } | 48 | } |
46 | 49 | ||
47 | void | 50 | void |