summaryrefslogtreecommitdiff
path: root/src/fe-common
diff options
context:
space:
mode:
authorAlexander Færøy <ahf@irssi.org>2009-02-08 17:57:19 +0000
committerahf <ahf@dbcabf3a-b0e7-0310-adc4-f8d773084564>2009-02-08 17:57:19 +0000
commit2fffcf5a77167e03e267664e559267c8fa1d972d (patch)
tree716e80f8ef45590b14c002a6baa4799c494311f3 /src/fe-common
parentc561ba35e6aa382124147e88f45683c0021db02f (diff)
downloadirssi-2fffcf5a77167e03e267664e559267c8fa1d972d.zip
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
Diffstat (limited to 'src/fe-common')
-rw-r--r--src/fe-common/core/fe-messages.c2
-rw-r--r--src/fe-common/irc/fe-irc-commands.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/fe-common/core/fe-messages.c b/src/fe-common/core/fe-messages.c
index 9b50c1a9..846272fd 100644
--- a/src/fe-common/core/fe-messages.c
+++ b/src/fe-common/core/fe-messages.c
@@ -576,7 +576,7 @@ static void sig_nicklist_new(CHANNEL_REC *channel, NICK_REC *nick)
newnick = g_string_new(NULL);
n = 2;
do {
- g_string_sprintf(newnick, "%s%d", nickhost, n);
+ g_string_printf(newnick, "%s%d", nickhost, n);
n++;
} while (printnick_exists(firstnick, nick, newnick->str));
diff --git a/src/fe-common/irc/fe-irc-commands.c b/src/fe-common/irc/fe-irc-commands.c
index 4696aba6..79b28746 100644
--- a/src/fe-common/irc/fe-irc-commands.c
+++ b/src/fe-common/irc/fe-irc-commands.c
@@ -187,10 +187,10 @@ static void bans_ask_channel(const char *channel, IRC_SERVER_REC *server,
GString *str;
str = g_string_new(NULL);
- g_string_sprintf(str, "%s b", channel);
+ g_string_printf(str, "%s b", channel);
signal_emit("command mode", 3, str->str, server, item);
if (server->emode_known) {
- g_string_sprintf(str, "%s e", channel);
+ g_string_printf(str, "%s e", channel);
signal_emit("command mode", 3, str->str, server, item);
}
g_string_free(str, TRUE);