summaryrefslogtreecommitdiff
path: root/src/irc/dcc/dcc-get.c
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/irc/dcc/dcc-get.c
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/irc/dcc/dcc-get.c')
-rw-r--r--src/irc/dcc/dcc-get.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/irc/dcc/dcc-get.c b/src/irc/dcc/dcc-get.c
index 87d4cfb6..bdcd2424 100644
--- a/src/irc/dcc/dcc-get.c
+++ b/src/irc/dcc/dcc-get.c
@@ -73,7 +73,7 @@ static char *dcc_get_rename_file(const char *fname)
newname = g_string_new(NULL);
num = 1;
do {
- g_string_sprintf(newname, "%s.%d", fname, num);
+ g_string_printf(newname, "%s.%d", fname, num);
num++;
} while (stat(newname->str, &statbuf) == 0);