changeset 6631:3a1c9ccece3b

Restore another bugfix lost on 2005-12-12
author Sergey Poznyakoff <gray@gnu.org.ua>
date Mon, 13 Feb 2006 13:25:58 +0000
parents a9941a15201c
children ccb2bb289442
files lib/argp-fmtstream.c
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/lib/argp-fmtstream.c
+++ b/lib/argp-fmtstream.c
@@ -246,9 +246,10 @@
 		 Oh well.  Put it on an overlong line by itself.  */
 	      p = buf + (r + 1 - fs->point_col);
 	      /* Find the end of the long word.  */
-	      do
-		++p;
-	      while (p < nl && !isblank (*p));
+	      if (p < nl)
+		do
+		  ++p;
+		while (p < nl && !isblank (*p));
 	      if (p == nl)
 		{
 		  /* It already ends a line.  No fussing required.  */