Hi Vimmers, In file os_win32.c there is a function mch_get_user_name() which uses GetUserName() function to get the logon name on Windows. The constant used to declare a buffer to get the name is MAX_COMPUTERNAME_LENGTH which is not correct. The correct constant (as mentioned in the documentation) is UNLEN.
I don't know the severity of this problem, but note that UNLEN is 256 characters, while MAX_COMPUTERNAME_LENGTH is only 15 characters. In fact, I discovered this problem while looking into BoundsChecker results for Vim - my logon name is longer than 15 chars and GetUserName were failing. Still, I can work in Vim perfectly - so this bug doesn't affect most of us. --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_dev" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---