summaryrefslogtreecommitdiff
path: root/src/fe-common/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/fe-common/core')
-rw-r--r--src/fe-common/core/fe-channels.c8
-rw-r--r--src/fe-common/core/fe-core-commands.c2
-rw-r--r--src/fe-common/core/fe-ignore.c4
-rw-r--r--src/fe-common/core/fe-log.c4
-rw-r--r--src/fe-common/core/fe-messages.c2
-rw-r--r--src/fe-common/core/hilight-text.c6
-rw-r--r--src/fe-common/core/printtext.c12
7 files changed, 19 insertions, 19 deletions
diff --git a/src/fe-common/core/fe-channels.c b/src/fe-common/core/fe-channels.c
index cc6f200f..061d68ca 100644
--- a/src/fe-common/core/fe-channels.c
+++ b/src/fe-common/core/fe-channels.c
@@ -207,7 +207,7 @@ static void cmd_channel_list_joined(void)
for (ntmp = nicklist; ntmp != NULL; ntmp = ntmp->next) {
NICK_REC *rec = ntmp->data;
- g_string_sprintfa(nicks, "%s ", rec->nick);
+ g_string_append_printf(nicks, "%s ", rec->nick);
}
if (nicks->len > 1) g_string_truncate(nicks, nicks->len-1);
@@ -235,9 +235,9 @@ static void cmd_channel_list(void)
if (rec->autojoin)
g_string_append(str, "autojoin, ");
if (rec->botmasks != NULL && *rec->botmasks != '\0')
- g_string_sprintfa(str, "bots: %s, ", rec->botmasks);
+ g_string_append_printf(str, "bots: %s, ", rec->botmasks);
if (rec->autosendcmd != NULL && *rec->autosendcmd != '\0')
- g_string_sprintfa(str, "botcmd: %s, ", rec->autosendcmd);
+ g_string_append_printf(str, "botcmd: %s, ", rec->autosendcmd);
if (str->len > 2) g_string_truncate(str, str->len-2);
printformat(NULL, NULL, MSGLEVEL_CLIENTCRAP, TXT_CHANSETUP_LINE,
@@ -564,7 +564,7 @@ static void cmd_names(const char *data, SERVER_REC *server, WI_ITEM_REC *item)
for (tmp = channels; *tmp != NULL; tmp++) {
chanrec = channel_find(server, *tmp);
if (chanrec == NULL)
- g_string_sprintfa(unknowns, "%s,", *tmp);
+ g_string_append_printf(unknowns, "%s,", *tmp);
else {
fe_channels_nicklist(chanrec, flags);
signal_stop();
diff --git a/src/fe-common/core/fe-core-commands.c b/src/fe-common/core/fe-core-commands.c
index 8120479c..86f62489 100644
--- a/src/fe-common/core/fe-core-commands.c
+++ b/src/fe-common/core/fe-core-commands.c
@@ -319,7 +319,7 @@ static void event_list_subcommands(const char *command)
if (g_strncasecmp(rec->cmd, command, len) == 0 &&
rec->cmd[len] == ' ' &&
strchr(rec->cmd+len+1, ' ') == NULL) {
- g_string_sprintfa(str, "%s ", rec->cmd+len+1);
+ g_string_append_printf(str, "%s ", rec->cmd+len+1);
}
}
diff --git a/src/fe-common/core/fe-ignore.c b/src/fe-common/core/fe-ignore.c
index 23a942c9..e39de875 100644
--- a/src/fe-common/core/fe-ignore.c
+++ b/src/fe-common/core/fe-ignore.c
@@ -64,9 +64,9 @@ static void ignore_print(int index, IGNORE_REC *rec)
if (rec->fullword) g_string_append(options, "-full ");
if (rec->replies) g_string_append(options, "-replies ");
if (rec->servertag != NULL)
- g_string_sprintfa(options, "-network %s ", rec->servertag);
+ g_string_append_printf(options, "-network %s ", rec->servertag);
if (rec->pattern != NULL)
- g_string_sprintfa(options, "-pattern %s ", rec->pattern);
+ g_string_append_printf(options, "-pattern %s ", rec->pattern);
if (options->len > 1) g_string_truncate(options, options->len-1);
diff --git a/src/fe-common/core/fe-log.c b/src/fe-common/core/fe-log.c
index 61b7a316..ed1d4d7d 100644
--- a/src/fe-common/core/fe-log.c
+++ b/src/fe-common/core/fe-log.c
@@ -200,11 +200,11 @@ static char *log_items_get_list(LOG_REC *log)
for (tmp = log->items; tmp != NULL; tmp = tmp->next) {
rec = tmp->data;
- g_string_sprintfa(str, "%s, ", rec->name);
+ g_string_append_printf(str, "%s, ", rec->name);
}
g_string_truncate(str, str->len-2);
if(rec->servertag != NULL)
- g_string_sprintfa(str, " (%s)", rec->servertag);
+ g_string_append_printf(str, " (%s)", rec->servertag);
ret = str->str;
g_string_free(str, FALSE);
diff --git a/src/fe-common/core/fe-messages.c b/src/fe-common/core/fe-messages.c
index 1035c7bb..9b50c1a9 100644
--- a/src/fe-common/core/fe-messages.c
+++ b/src/fe-common/core/fe-messages.c
@@ -371,7 +371,7 @@ static void sig_message_quit(SERVER_REC *server, const char *nick,
print_channel = rec->visible_name;
if (once)
- g_string_sprintfa(chans, "%s,", rec->visible_name);
+ g_string_append_printf(chans, "%s,", rec->visible_name);
else {
window = window_item_window((WI_ITEM_REC *) rec);
if (g_slist_find(windows, window) == NULL) {
diff --git a/src/fe-common/core/hilight-text.c b/src/fe-common/core/hilight-text.c
index cd71364b..a043d60f 100644
--- a/src/fe-common/core/hilight-text.c
+++ b/src/fe-common/core/hilight-text.c
@@ -491,11 +491,11 @@ static void hilight_print(int index, HILIGHT_REC *rec)
}
if (rec->priority != 0)
- g_string_sprintfa(options, "-priority %d ", rec->priority);
+ g_string_append_printf(options, "-priority %d ", rec->priority);
if (rec->color != NULL)
- g_string_sprintfa(options, "-color %s ", rec->color);
+ g_string_append_printf(options, "-color %s ", rec->color);
if (rec->act_color != NULL)
- g_string_sprintfa(options, "-actcolor %s ", rec->act_color);
+ g_string_append_printf(options, "-actcolor %s ", rec->act_color);
chans = rec->channels == NULL ? NULL :
g_strjoinv(",", rec->channels);
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;
}