summaryrefslogtreecommitdiff
path: root/src/fe-common/core/printtext.c
diff options
context:
space:
mode:
authorAlexander Færøy <ahf@irssi.org>2009-02-08 17:22:42 +0000
committerahf <ahf@dbcabf3a-b0e7-0310-adc4-f8d773084564>2009-02-08 17:22:42 +0000
commitc561ba35e6aa382124147e88f45683c0021db02f (patch)
treea0ec48e7655295c69662a9edd396038951527e92 /src/fe-common/core/printtext.c
parent32e01a5a06e35c98c478413fb6c86818dd930ff3 (diff)
downloadirssi-c561ba35e6aa382124147e88f45683c0021db02f.zip
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
Diffstat (limited to 'src/fe-common/core/printtext.c')
-rw-r--r--src/fe-common/core/printtext.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/fe-common/core/printtext.c b/src/fe-common/core/printtext.c
index c3ceb7fd..d3653f90 100644
--- a/src/fe-common/core/printtext.c
+++ b/src/fe-common/core/printtext.c
@@ -226,31 +226,31 @@ static char *printtext_get_args(TEXT_DEST_REC *dest, const char *str,
}
case 'd': {
int d = (int) va_arg(va, int);
- g_string_sprintfa(out, "%d", d);
+ g_string_append_printf(out, "%d", d);
break;
}
case 'f': {
double f = (double) va_arg(va, double);
- g_string_sprintfa(out, "%0.2f", f);
+ g_string_append_printf(out, "%0.2f", f);
break;
}
case 'u': {
unsigned int d =
(unsigned int) va_arg(va, unsigned int);
- g_string_sprintfa(out, "%u", d);
+ g_string_append_printf(out, "%u", d);
break;
}
case 'l': {
long d = (long) va_arg(va, long);
if (*++str != 'd' && *str != 'u') {
- g_string_sprintfa(out, "%ld", d);
+ g_string_append_printf(out, "%ld", d);
str--;
} else {
if (*str == 'd')
- g_string_sprintfa(out, "%ld", d);
+ g_string_append_printf(out, "%ld", d);
else
- g_string_sprintfa(out, "%lu", d);
+ g_string_append_printf(out, "%lu", d);
}
break;
}