Code Cleanup:

Use g_string_printf() instead of g_string_sprintf() (which is considered deprecated.)



git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5004 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Alexander Færøy 2009-02-08 17:57:19 +00:00 committed by ahf
commit 2fffcf5a77
12 changed files with 20 additions and 20 deletions

View file

@ -144,7 +144,7 @@ void proxy_outserver_all_except(CLIENT_REC *client, const char *data, ...)
static void create_names_start(GString *str, IRC_CHANNEL_REC *channel,
CLIENT_REC *client)
{
g_string_sprintf(str, ":%s 353 %s %c %s :",
g_string_printf(str, ":%s 353 %s %c %s :",
client->proxy_address, client->nick,
channel_mode_is_set(channel, 'p') ? '*' :
channel_mode_is_set(channel, 's') ? '@' : '=',
@ -270,7 +270,7 @@ void proxy_dump_data(CLIENT_REC *client)
g_string_append_printf(paramstr, " :are supported by this server\n");
proxy_outdata(client, "%s", paramstr->str);
g_string_truncate(paramstr, 0);
g_string_sprintf(paramstr, ":%s 005 %s ", client->proxy_address, client->nick);
g_string_printf(paramstr, ":%s 005 %s ", client->proxy_address, client->nick);
if (*tmp == NULL || tmp[1] == NULL)
break;

View file

@ -370,7 +370,7 @@ static void sig_incoming(IRC_SERVER_REC *server, const char *line)
g_return_if_fail(line != NULL);
/* send server event to all clients */
g_string_sprintf(next_line, "%s\n", line);
g_string_printf(next_line, "%s\n", line);
}
static void sig_server_event(IRC_SERVER_REC *server, const char *line,