diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2005-03-24 16:42:24 +0000 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2005-03-24 16:42:24 +0000 |
commit | 36b2e104972c16bba720d356b398c0845bcfc4b6 (patch) | |
tree | 1c2f8d7b58a2e2a57c180f07a86efb28ef27e7fe /src/common/weechat.c | |
parent | cec88e004750f4dfba4a0c33cf6b7f8db94a0f96 (diff) | |
download | weechat-36b2e104972c16bba720d356b398c0845bcfc4b6.zip |
Fixed crash with 64-bits arch (like AMD64) when converting UTF-8, added weechat version in log at startup
Diffstat (limited to 'src/common/weechat.c')
-rw-r--r-- | src/common/weechat.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/common/weechat.c b/src/common/weechat.c index 54e004316..dc8139089 100644 --- a/src/common/weechat.c +++ b/src/common/weechat.c @@ -116,7 +116,7 @@ weechat_convert_encoding (char *from_code, char *to_code, char *string) #ifdef HAVE_ICONV iconv_t cd; char *inbuf, *ptr_inbuf, *ptr_outbuf; - int inbytesleft, outbytesleft; + size_t inbytesleft, outbytesleft; if (from_code && from_code[0] && to_code && to_code[0] && (strcasecmp(from_code, to_code) != 0)) @@ -573,6 +573,9 @@ weechat_welcome_message () cfg_look_startup_version) gui_printf_color (NULL, COLOR_WIN_CHAT_PREFIX1, "-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-\n"); + + wee_log_printf ("%s (%s %s %s)\n", + PACKAGE_STRING, _("compiled on"), __DATE__, __TIME__); } /* @@ -761,8 +764,8 @@ main (int argc, char *argv[]) } gui_init (); /* init WeeChat interface */ - plugin_init (); /* init plugin interface(s) */ weechat_welcome_message (); /* display WeeChat welcome message */ + plugin_init (); /* init plugin interface(s) */ /* auto-connect to servers */ server_auto_connect (server_cmd_line); fifo_create (); /* create FIFO pipe for remote control */ |