diff options
Diffstat (limited to 'src/lib-config')
-rw-r--r-- | src/lib-config/get.c | 2 | ||||
-rw-r--r-- | src/lib-config/write.c | 4 |
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++; |