X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fargp-fmtstream.c;h=0dd9256f570adfb6eed734d465e60f0fa9bb43f0;hb=a9e638f0e4d6928c12f2b374bc369bb1ecf2cdfe;hp=e644d9b766ee751d57275b497034f1ae0b604aae;hpb=c72047a1ed44c8c9509f1593d726ccd63ceb965c;p=gnulib.git diff --git a/lib/argp-fmtstream.c b/lib/argp-fmtstream.c index e644d9b76..0dd9256f5 100644 --- a/lib/argp-fmtstream.c +++ b/lib/argp-fmtstream.c @@ -21,7 +21,7 @@ don't have that. */ #ifdef HAVE_CONFIG_H -#include +# include #endif #include @@ -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. */