diff options
Diffstat (limited to 'src/fe-text')
-rw-r--r-- | src/fe-text/mainwindows.c | 2 | ||||
-rw-r--r-- | src/fe-text/statusbar.c | 2 | ||||
-rw-r--r-- | src/fe-text/textbuffer.c | 12 |
3 files changed, 8 insertions, 8 deletions
diff --git a/src/fe-text/mainwindows.c b/src/fe-text/mainwindows.c index d70811f2..6cb567cc 100644 --- a/src/fe-text/mainwindows.c +++ b/src/fe-text/mainwindows.c @@ -1028,7 +1028,7 @@ static void windows_print_sticky(WINDOW_REC *win) for (tmp = list; tmp != NULL; tmp = tmp->next) { WINDOW_REC *rec = tmp->data; - g_string_sprintfa(str, "#%d, ", rec->refnum); + g_string_append_printf(str, "#%d, ", rec->refnum); } g_string_truncate(str, str->len-2); g_slist_free(list); diff --git a/src/fe-text/statusbar.c b/src/fe-text/statusbar.c index d81890e1..68724293 100644 --- a/src/fe-text/statusbar.c +++ b/src/fe-text/statusbar.c @@ -648,7 +648,7 @@ static GString *finalize_string(const char *str, const char *color) (term_type == TERM_TYPE_8BIT && (unsigned char) (*str & 0x7f) < 32)) { /* control char */ - g_string_sprintfa(out, "%%8%c%%8", + g_string_append_printf(out, "%%8%c%%8", 'A'-1 + (*str & 0x7f)); } else if (*str == '%' && str[1] == 'n') { g_string_append(out, color); diff --git a/src/fe-text/textbuffer.c b/src/fe-text/textbuffer.c index f078e90e..0ba7d16e 100644 --- a/src/fe-text/textbuffer.c +++ b/src/fe-text/textbuffer.c @@ -372,11 +372,11 @@ static void set_color(GString *str, int cmd) if ((cmd & LINE_COLOR_BG) == 0) { /* change foreground color */ - g_string_sprintfa(str, "\004%c%c", + g_string_append_printf(str, "\004%c%c", color, FORMAT_COLOR_NOCHANGE); } else { /* change background color */ - g_string_sprintfa(str, "\004%c%c", + g_string_append_printf(str, "\004%c%c", FORMAT_COLOR_NOCHANGE, color); } } @@ -429,19 +429,19 @@ void textbuffer_line2text(LINE_REC *line, int coloring, GString *str) g_string_append_c(str, 22); break; case LINE_CMD_BLINK: - g_string_sprintfa(str, "\004%c", + g_string_append_printf(str, "\004%c", FORMAT_STYLE_BLINK); break; case LINE_CMD_BOLD: - g_string_sprintfa(str, "\004%c", + g_string_append_printf(str, "\004%c", FORMAT_STYLE_BOLD); break; case LINE_CMD_COLOR0: - g_string_sprintfa(str, "\004%c%c", + g_string_append_printf(str, "\004%c%c", '0', FORMAT_COLOR_NOCHANGE); break; case LINE_CMD_INDENT: - g_string_sprintfa(str, "\004%c", + g_string_append_printf(str, "\004%c", FORMAT_STYLE_INDENT); break; } |