summaryrefslogtreecommitdiffabout
path: root/src/report.c
Side-by-side diff
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
@@ -36,4 +36,6 @@ report_add (const char *fmt, ...)
char *str = NULL;
+ size_t size = 0;
+
va_start (ap, fmt);
- vasprintf (&str, fmt, ap);
+ grecs_vasprintf (&str, &size, fmt, ap);
va_end (ap);
@@ -44,2 +46,3 @@ report_add (const char *fmt, ...)
}
+ free (str);
}

Return to:

Send suggestions and report system problems to the System administrator.