To: vim-dev@vim.org Subject: Patch 6.1.322 (extra) Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit ------------ Patch 6.1.322 (extra, depends on 6.1.315) Problem: Win32: The host name is always "PC " plus the real host name. Solution: Don't insert "PC " before the host name. Files: src/os_win32.c *** ../vim61.321/src/os_win32.c Sat Feb 1 18:48:57 2003 --- src/os_win32.c Mon Feb 3 18:48:16 2003 *************** *** 2224,2240 **** char_u *s, int len) { ! char szHostName[MAX_COMPUTERNAME_LENGTH + 1]; ! DWORD cch = sizeof szHostName; ! if (GetComputerName(szHostName, &cch)) { - STRCPY(s, "PC "); - STRNCPY(s + 3, szHostName, len - 3); - } - else STRNCPY(s, "PC (Win32 Vim)", len); ! s[len - 1] = NUL; /* make sure it's terminated */ } --- 2228,2240 ---- char_u *s, int len) { ! DWORD cch = len; ! if (!GetComputerName(s, &cch)) { STRNCPY(s, "PC (Win32 Vim)", len); ! s[len - 1] = NUL; /* make sure it's terminated */ ! } } *** ../vim61.321/src/version.c Sun Feb 16 19:41:35 2003 --- src/version.c Sun Feb 16 19:46:41 2003 *************** *** 607,608 **** --- 612,615 ---- { /* Add new patch number below this line */ + /**/ + 322, /**/ -- hundred-and-one symptoms of being an internet addict: 260. Co-workers have to E-mail you about the fire alarm to get you out of the building. /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// Creator of Vim - Vi IMproved -- http://www.Vim.org \\\ \\\ Project leader for A-A-P -- http://www.A-A-P.org /// \\\ Help AIDS victims, buy at Amazon -- http://ICCF.nl/click1.html ///