mirror of
https://github.com/irssi/irssi.git
synced 2026-08-09 11:50:10 +02:00
Make configure checks able to build with -Werror
Also fix a few compiler warnings, this combined with pull #82 allows me to build with CFLAGS="-Werror -Wall".
This commit is contained in:
parent
1bf4753914
commit
beec29c305
6 changed files with 13 additions and 11 deletions
|
|
@ -452,7 +452,7 @@ void gui_entry_insert_text(GUI_ENTRY_REC *entry, const char *str)
|
|||
g_utf8_validate(str, -1, &ptr);
|
||||
len = g_utf8_pointer_to_offset(str, ptr);
|
||||
} else if (term_type == TERM_TYPE_BIG5)
|
||||
len = strlen_big5(str);
|
||||
len = strlen_big5((const unsigned char *)str);
|
||||
else
|
||||
len = strlen(str);
|
||||
entry_text_grow(entry, len);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue