# HG changeset patch # User Sergey Poznyakoff # Date 1134250616 0 # Node ID d39421bbc830575c9639ec64f6967302cf009f51 # Parent c5451290271ba12485927ed04d6bd5ffe12c5124 (__argp_fmtstream_update): Fix coredump diff --git a/lib/argp-fmtstream.c b/lib/argp-fmtstream.c --- 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. */