changeset 38888:57fcc523f978

vma-iter: Fix truncated result on NetBSD (regression from 2017-10-07). * lib/vma-iter.c (MIN_LEFTOVER): Define to 1, not 0.
author Bruno Haible <bruno@clisp.org>
date Sun, 08 Oct 2017 12:24:45 +0200
parents 091cd881990e
children 67df4bbbbc48
files ChangeLog lib/vma-iter.c
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Sat Oct 07 19:21:07 2017 +0900
+++ b/ChangeLog	Sun Oct 08 12:24:45 2017 +0200
@@ -1,3 +1,8 @@
+2017-10-08  Bruno Haible  <bruno@clisp.org>
+
+	vma-iter: Fix truncated result on NetBSD (regression from 2017-10-07).
+	* lib/vma-iter.c (MIN_LEFTOVER): Define to 1, not 0.
+
 2017-10-07  KO Myung-Hun  <komh@chollian.net>
 
 	test-framework-sh: Fix 'invalid path dir' error.
--- a/lib/vma-iter.c	Sat Oct 07 19:21:07 2017 +0900
+++ b/lib/vma-iter.c	Sun Oct 08 12:24:45 2017 +0200
@@ -128,7 +128,7 @@
      left when read() returned.  */
 #  define MIN_LEFTOVER (73 + PATH_MAX)
 # else
-#  define MIN_LEFTOVER 0
+#  define MIN_LEFTOVER 1
 # endif
 
 # ifdef TEST