summaryrefslogtreecommitdiff
path: root/src/lib-config
diff options
context:
space:
mode:
authorAlexander Færøy <ahf@irssi.org>2009-02-08 17:22:42 +0000
committerahf <ahf@dbcabf3a-b0e7-0310-adc4-f8d773084564>2009-02-08 17:22:42 +0000
commitc561ba35e6aa382124147e88f45683c0021db02f (patch)
treea0ec48e7655295c69662a9edd396038951527e92 /src/lib-config
parent32e01a5a06e35c98c478413fb6c86818dd930ff3 (diff)
downloadirssi-c561ba35e6aa382124147e88f45683c0021db02f.zip
Code Cleanup:
Use g_string_append_printf() instead of g_string_sprintfa() (which is considered deprecated.) git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5003 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/lib-config')
-rw-r--r--src/lib-config/get.c2
-rw-r--r--src/lib-config/write.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/lib-config/get.c b/src/lib-config/get.c
index 5f429a82..c0f6a3dd 100644
--- a/src/lib-config/get.c
+++ b/src/lib-config/get.c
@@ -214,7 +214,7 @@ char **config_node_get_list(CONFIG_NODE *node)
node = tmp->data;
if (node->type == NODE_TYPE_VALUE)
- g_string_sprintfa(values, "%s ", (char *) node->value);
+ g_string_append_printf(values, "%s ", (char *) node->value);
}
/* split the values to **str array */
diff --git a/src/lib-config/write.c b/src/lib-config/write.c
index 5a06b177..85bd0406 100644
--- a/src/lib-config/write.c
+++ b/src/lib-config/write.c
@@ -98,9 +98,9 @@ static char *config_escape_string(const char *text)
str = g_string_new("\"");
while (*text != '\0') {
if (*text == '\\' || *text == '"')
- g_string_sprintfa(str, "\\%c", *text);
+ g_string_append_printf(str, "\\%c", *text);
else if ((unsigned char) *text < 32)
- g_string_sprintfa(str, "\\%03o", *text);
+ g_string_append_printf(str, "\\%03o", *text);
else
g_string_append_c(str, *text);
text++;