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:
gombasg 2009-02-14 08:30:26 +00:00 committed by Adam Visegradi
parent dd7b340df4
commit 4545bd58aa
1 changed files with 3 additions and 1 deletions

View File

@ -956,6 +956,7 @@ static void append_result_file_ref(GString *tmpl, int idx, const char *fmt, ...)
G_GNUC_PRINTF(3, 4); G_GNUC_PRINTF(3, 4);
static void append_result_file_ref(GString *tmpl, int idx, const char *fmt, ...) static void append_result_file_ref(GString *tmpl, int idx, const char *fmt, ...)
{ {
char buf[1024];
va_list ap; va_list ap;
g_string_append(tmpl, "\t<file_ref>\n"); 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>"); g_string_append(tmpl, "\t\t<open_name>");
va_start(ap, fmt); va_start(ap, fmt);
g_string_append_vprintf(tmpl, fmt, ap); vsnprintf(buf, sizeof(buf), fmt, ap);
va_end(ap); va_end(ap);
g_string_append(tmpl, buf);
g_string_append(tmpl, "</open_name>\n"); g_string_append(tmpl, "</open_name>\n");
g_string_append(tmpl, "\t</file_ref>\n"); g_string_append(tmpl, "\t</file_ref>\n");