From 4545bd58aa2f8bdb7b6784e015d87d4388b1f1f2 Mon Sep 17 00:00:00 2001 From: gombasg Date: Sat, 14 Feb 2009 08:30:26 +0000 Subject: [PATCH] g_string_append_vprintf() does not exist in the glib in etch git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@2110 a7169a2c-3604-0410-bc95-c702d8d87f7a --- dcapi/boinc/wu.C | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dcapi/boinc/wu.C b/dcapi/boinc/wu.C index 6d0b71e1b2..c601df0632 100644 --- a/dcapi/boinc/wu.C +++ b/dcapi/boinc/wu.C @@ -956,6 +956,7 @@ static void append_result_file_ref(GString *tmpl, int idx, const char *fmt, ...) G_GNUC_PRINTF(3, 4); static void append_result_file_ref(GString *tmpl, int idx, const char *fmt, ...) { + char buf[1024]; va_list ap; g_string_append(tmpl, "\t\n"); @@ -963,8 +964,9 @@ static void append_result_file_ref(GString *tmpl, int idx, const char *fmt, ...) g_string_append(tmpl, "\t\t"); va_start(ap, fmt); - g_string_append_vprintf(tmpl, fmt, ap); + vsnprintf(buf, sizeof(buf), fmt, ap); va_end(ap); + g_string_append(tmpl, buf); g_string_append(tmpl, "\n"); g_string_append(tmpl, "\t\n");