author | Mikael Berthe <mikael@lilotux.net> |
Sat, 27 May 2006 19:46:20 +0200 | |
changeset 884 | 9e6d9f0cf9eb |
parent 883 | 0aa9015f06df |
child 885 | afdd81c2c44d |
--- a/mcabber/src/screen.c Sat May 27 19:17:01 2006 +0200 +++ b/mcabber/src/screen.c Sat May 27 19:46:20 2006 +0200 @@ -364,6 +364,15 @@ else buffer_locale = buffer; + if (!buffer_locale) { + wprintw(logWnd, + "\n%s*Error: cannot convert string to locale.", strtimestamp); + update_panels(); + doupdate(); + g_free(buffer); + return; + } + // For the special status buffer, we need utf-8, but without the timestamp if (flag & LPRINT_NOTUTF8) buf_specialwindow = to_utf8(btext);