diff options
author | Timo Sirainen <cras@irssi.org> | 2002-02-01 20:14:30 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2002-02-01 20:14:30 +0000 |
commit | 33d30268b4dd7f5afe174d54f3f7e13459633348 (patch) | |
tree | d6a428619f51ad9cc219041f807a5589c39fe1e0 /src/fe-text/textbuffer-reformat.c | |
parent | f8221db7ca38a7ecca599c45dc70d70f1038b566 (diff) | |
download | irssi-33d30268b4dd7f5afe174d54f3f7e13459633348.zip |
added some pointer casting to get rid of warnings with some compilers.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2365 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-text/textbuffer-reformat.c')
-rw-r--r-- | src/fe-text/textbuffer-reformat.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/fe-text/textbuffer-reformat.c b/src/fe-text/textbuffer-reformat.c index 9bccbc5a..da75a5a8 100644 --- a/src/fe-text/textbuffer-reformat.c +++ b/src/fe-text/textbuffer-reformat.c @@ -192,7 +192,8 @@ void textbuffer_reformat_line(WINDOW_REC *window, LINE_REC *line) g_free(tmp); line = textbuffer_insert(gui->view->buffer, gui->insert_after, - raw->str, raw->len, &line_info); + (unsigned char *) raw->str, + raw->len, &line_info); textbuffer_view_insert_line(gui->view, line); } g_string_free(raw, TRUE); @@ -247,7 +248,8 @@ static void sig_gui_printtext_finished(WINDOW_REC *window) gui->insert_after : gui->view->buffer->cur_line; textbuffer_insert(gui->view->buffer, insert_after, - format->str, format->len, NULL); + (unsigned char *) format->str, + format->len, NULL); g_string_truncate(format, 0); } |