|
Karsten Hopp |
48bf9e |
To: vim-dev@vim.org
|
|
Karsten Hopp |
48bf9e |
Subject: About patch 7.1.129 (extra)
|
|
Karsten Hopp |
48bf9e |
Fcc: outbox
|
|
Karsten Hopp |
48bf9e |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
48bf9e |
Mime-Version: 1.0
|
|
Karsten Hopp |
48bf9e |
Content-Type: text/plain; charset=ISO-8859-1
|
|
Karsten Hopp |
48bf9e |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
48bf9e |
------------
|
|
Karsten Hopp |
48bf9e |
|
|
Karsten Hopp |
48bf9e |
Patch 7.1.129 (extra)
|
|
Karsten Hopp |
48bf9e |
Problem: Win32: Can't get the user name when it is longer than 15
|
|
Karsten Hopp |
48bf9e |
characters.
|
|
Karsten Hopp |
48bf9e |
Solution: Use UNLEN instead of MAX_COMPUTERNAME_LENGTH. (Alexei Alexandrov)
|
|
Karsten Hopp |
48bf9e |
Files: src/os_win32.c
|
|
Karsten Hopp |
48bf9e |
|
|
Karsten Hopp |
48bf9e |
|
|
Karsten Hopp |
48bf9e |
*** ../vim-7.1.128/src/os_win32.c Thu May 10 19:22:59 2007
|
|
Karsten Hopp |
48bf9e |
--- src/os_win32.c Mon Oct 1 20:07:24 2007
|
|
Karsten Hopp |
48bf9e |
***************
|
|
Karsten Hopp |
48bf9e |
*** 2378,2384 ****
|
|
Karsten Hopp |
48bf9e |
char_u *s,
|
|
Karsten Hopp |
48bf9e |
int len)
|
|
Karsten Hopp |
48bf9e |
{
|
|
Karsten Hopp |
48bf9e |
! char szUserName[MAX_COMPUTERNAME_LENGTH + 1];
|
|
Karsten Hopp |
48bf9e |
DWORD cch = sizeof szUserName;
|
|
Karsten Hopp |
48bf9e |
|
|
Karsten Hopp |
48bf9e |
if (GetUserName(szUserName, &cch))
|
|
Karsten Hopp |
48bf9e |
--- 2378,2384 ----
|
|
Karsten Hopp |
48bf9e |
char_u *s,
|
|
Karsten Hopp |
48bf9e |
int len)
|
|
Karsten Hopp |
48bf9e |
{
|
|
Karsten Hopp |
48bf9e |
! char szUserName[256 + 1]; /* UNLEN is 256 */
|
|
Karsten Hopp |
48bf9e |
DWORD cch = sizeof szUserName;
|
|
Karsten Hopp |
48bf9e |
|
|
Karsten Hopp |
48bf9e |
if (GetUserName(szUserName, &cch))
|
|
Karsten Hopp |
48bf9e |
*** ../vim-7.1.128/src/version.c Sun Sep 30 22:28:08 2007
|
|
Karsten Hopp |
48bf9e |
--- src/version.c Mon Oct 1 20:32:52 2007
|
|
Karsten Hopp |
48bf9e |
***************
|
|
Karsten Hopp |
48bf9e |
*** 668,669 ****
|
|
Karsten Hopp |
48bf9e |
--- 668,671 ----
|
|
Karsten Hopp |
48bf9e |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
48bf9e |
+ /**/
|
|
Karsten Hopp |
48bf9e |
+ 129,
|
|
Karsten Hopp |
48bf9e |
/**/
|
|
Karsten Hopp |
48bf9e |
|
|
Karsten Hopp |
48bf9e |
--
|
|
Karsten Hopp |
48bf9e |
ARTHUR: It is I, Arthur, son of Uther Pendragon, from the castle of Camelot.
|
|
Karsten Hopp |
48bf9e |
King of all Britons, defeator of the Saxons, sovereign of all England!
|
|
Karsten Hopp |
48bf9e |
[Pause]
|
|
Karsten Hopp |
48bf9e |
SOLDIER: Get away!
|
|
Karsten Hopp |
48bf9e |
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
|
|
Karsten Hopp |
48bf9e |
|
|
Karsten Hopp |
48bf9e |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
48bf9e |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
48bf9e |
\\\ download, build and distribute -- http://www.A-A-P.org ///
|
|
Karsten Hopp |
48bf9e |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|