From: Sergey Poznyakoff Date: Mon, 13 Feb 2006 13:25:58 +0000 (+0000) Subject: Restore another bugfix lost on 2005-12-12 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9cd9c7d8b062f1f2a031b1b09c96a5976d1779d9;p=pspp Restore another bugfix lost on 2005-12-12 --- diff --git a/lib/argp-fmtstream.c b/lib/argp-fmtstream.c index 0ba19c5aeb..0dd9256f57 100644 --- a/lib/argp-fmtstream.c +++ b/lib/argp-fmtstream.c @@ -246,9 +246,10 @@ __argp_fmtstream_update (argp_fmtstream_t fs) 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. */