summaryrefslogtreecommitdiff
path: root/gdata/gd
diff options
context:
space:
mode:
authorPhilip Withnall <philip@tecnocode.co.uk>2010-09-30 17:23:46 +0100
committerPhilip Withnall <philip@tecnocode.co.uk>2010-09-30 19:18:28 +0100
commitf37944aa5dabe5cb6c72002384ddb60416089738 (patch)
treea9a6efd848e4e2cef3b33b2843e8370dbddfa904 /gdata/gd
parent68584f8c6a3ae3564919b02343dcbaf2282a3c72 (diff)
downloadlibgdata-f37944aa5dabe5cb6c72002384ddb60416089738.tar.gz
gd: Fix attribute escaping for GDataGDIMAddress
Diffstat (limited to 'gdata/gd')
-rw-r--r--gdata/gd/gdata-gd-im-address.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/gdata/gd/gdata-gd-im-address.c b/gdata/gd/gdata-gd-im-address.c
index 624d7e6a..3ded135e 100644
--- a/gdata/gd/gdata-gd-im-address.c
+++ b/gdata/gd/gdata-gd-im-address.c
@@ -293,13 +293,12 @@ pre_get_xml (GDataParsable *parsable, GString *xml_string)
{
GDataGDIMAddressPrivate *priv = GDATA_GD_IM_ADDRESS (parsable)->priv;
+ gdata_parser_string_append_escaped (xml_string, " address='", priv->address, "'");
if (priv->protocol != NULL)
- g_string_append_printf (xml_string, " address='%s' protocol='%s'", priv->address, priv->protocol);
- else
- g_string_append_printf (xml_string, " address='%s'", priv->address);
+ gdata_parser_string_append_escaped (xml_string, " protocol='", priv->protocol, "'");
if (priv->relation_type != NULL)
- g_string_append_printf (xml_string, " rel='%s'", priv->relation_type);
+ gdata_parser_string_append_escaped (xml_string, " rel='", priv->relation_type, "'");
if (priv->label != NULL)
gdata_parser_string_append_escaped (xml_string, " label='", priv->label, "'");