components/vim/patches/7031620.patch
author Danek Duvall <danek.duvall@oracle.com>
Tue, 01 May 2012 09:59:48 -0700
changeset 820 60113d90e478
permissions -rw-r--r--
7143097 upgrade vim to 7.3.515 7031620 vim crashes when creating file inside a long directory
--- src/os_unix.c	Tue May  1 09:52:21 2012
+++ src/os_unix.c	Tue May  1 09:52:24 2012
@@ -2509,7 +2509,7 @@
 	}
 
 	l = STRLEN(buf);
-	if (l >= len)
+	if (l >= len - 1)
 	    retval = FAIL;
 #ifndef VMS
 	else