mirror of https://github.com/BOINC/boinc.git
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
This commit is contained in:
parent
dd7b340df4
commit
4545bd58aa
|
@ -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<file_ref>\n");
|
||||
|
@ -963,8 +964,9 @@ static void append_result_file_ref(GString *tmpl, int idx, const char *fmt, ...)
|
|||
g_string_append(tmpl, "\t\t<open_name>");
|
||||
|
||||
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, "</open_name>\n");
|
||||
g_string_append(tmpl, "\t</file_ref>\n");
|
||||
|
|
Loading…
Reference in New Issue