From 36b2e104972c16bba720d356b398c0845bcfc4b6 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Thu, 24 Mar 2005 16:42:24 +0000 Subject: Fixed crash with 64-bits arch (like AMD64) when converting UTF-8, added weechat version in log at startup --- src/common/weechat.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/common/weechat.c') 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 */ -- cgit v1.2.3