mirror of
https://github.com/irssi/irssi.git
synced 2026-08-16 23:22:16 +02:00
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:
parent
32e01a5a06
commit
c561ba35e6
30 changed files with 86 additions and 86 deletions
|
|
@ -135,7 +135,7 @@ static void notifylist_timeout_server(IRC_SERVER_REC *server)
|
|||
if (cmd->len+len+1 > 510)
|
||||
ison_send(server, cmd);
|
||||
|
||||
g_string_sprintfa(cmd, "%s ", nick);
|
||||
g_string_append_printf(cmd, "%s ", nick);
|
||||
g_free(nick);
|
||||
}
|
||||
|
||||
|
|
@ -211,7 +211,7 @@ static void whois_list_send(IRC_SERVER_REC *server, GSList *nicks)
|
|||
nick = tmp->data;
|
||||
|
||||
count++;
|
||||
g_string_sprintfa(str, "%s,", nick);
|
||||
g_string_append_printf(str, "%s,", nick);
|
||||
|
||||
if (count >= server->max_whois_in_cmd) {
|
||||
g_string_truncate(str, str->len-1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue