summaryrefslogtreecommitdiff
path: root/src/lib-config/write.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib-config/write.c')
-rw-r--r--src/lib-config/write.c4
1 files changed, 2 insertions, 2 deletions
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++;