To: [email protected]
Subject: patch 5.5a.5 (extra)
Fcc: outbox
From: Bram Moolenaar <[email protected]>
------------

Note that this patch is only for those who use the extra archive.  Others can
skip it.  If all goes well, ":version" will show that this patch was not
included.

Patch 5.5a.5
Problem:    Win32: The 'path' option can hold only up to 256 characters,
           because _MAX_PATH is 256.  (Robert Webb)
Solution:   Use a fixed path length of 1024.
Files:      src/os_win32.h


*** ../vim-5.5a.4/src/os_win32.h        Mon Aug 30 10:40:57 1999
--- src/os_win32.h      Wed Sep  1 12:24:26 1999
***************
*** 69,77 ****
  */
 #define CMDBUFFSIZE 1024      /* size of the command processing buffer */

! #define MAXPATHL    _MAX_PATH /* Win32 has long paths and plenty of memory */

! #define BASENAMELEN   (MAXPATHL-5)    /* length of base of file name */

 #ifndef MAXMEM
 # define MAXMEM               (2*1024)    /* use up to 2 Mbyte for a buffer */
--- 69,79 ----
  */
 #define CMDBUFFSIZE 1024      /* size of the command processing buffer */

! /* _MAX_PATH is only 256 (stdlib.h), but we want more for the 'path' option,
!  * thus use a larger number. */
! #define MAXPATHL      1024

! #define BASENAMELEN   (_MAX_PATH - 5) /* length of base of file name */

 #ifndef MAXMEM
 # define MAXMEM               (2*1024)    /* use up to 2 Mbyte for a buffer */
*** ../vim-5.5a.4/src/version.c Wed Sep  1 18:02:55 1999
--- src/version.c       Wed Sep  1 18:05:00 1999
***************
*** 420,420 ****
--- 420,421 ----
 {   /* Add new patch number below this line */
+     5,

--
WOMAN:   I didn't know we had a king. I thought we were an autonomous
        collective.
DENNIS:  You're fooling yourself.  We're living in a dictatorship.  A
        self-perpetuating autocracy in which the working classes--
WOMAN:   Oh there you go, bringing class into it again.
DENNIS:  That's what it's all about if only people would--
                                 The Quest for the Holy Grail (Monty Python)

--/-/---- Bram Moolenaar ---- [email protected] ---- [email protected] ---\-\--
 \ \    www.vim.org/iccf      www.moolenaar.net       www.vim.org    / /