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
This commit is contained in:
Alexander Færøy 2009-02-08 17:22:42 +00:00 committed by ahf
commit c561ba35e6
30 changed files with 86 additions and 86 deletions

View file

@ -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 */

View file

@ -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++;