components/vim/patches/7031620.patch
author April Chin <april.chin@oracle.com>
Mon, 04 May 2015 10:54:49 -0700
branchs11-update
changeset 4241 9c60eb0ab04b
parent 820 60113d90e478
permissions -rw-r--r--
PSARC/2015/113 Add Ruby 2.1 and EOF and Remove Ruby 1.9 19884752 Integrate Ruby 2.1.6

--- 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