X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fargp-fmtstream.c;h=7e6d9c6982e9d336765ba998b039179781ae7c19;hb=6c9f1e88ada406b65f6b10098b8c9e60c973e614;hp=0dd9256f570adfb6eed734d465e60f0fa9bb43f0;hpb=96f649aa3b7ee7d6814ecce639bde2a84cd857ed;p=gnulib.git diff --git a/lib/argp-fmtstream.c b/lib/argp-fmtstream.c index 0dd9256f5..7e6d9c698 100644 --- a/lib/argp-fmtstream.c +++ b/lib/argp-fmtstream.c @@ -3,19 +3,18 @@ This file is part of the GNU C Library. Written by Miles Bader . - This program is free software; you can redistribute it and/or modify + This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) - any later version. + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - You should have received a copy of the GNU General Public License along - with this program; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ /* This package emulates glibc `line_wrap_stream' semantics for systems that don't have that. */ @@ -227,7 +226,7 @@ __argp_fmtstream_update (argp_fmtstream_t fs) int i; p = buf + (r + 1 - fs->point_col); - while (p >= buf && !isblank (*p)) + while (p >= buf && !isblank ((unsigned char) *p)) --p; nextline = p + 1; /* This will begin the next line. */ @@ -237,7 +236,7 @@ __argp_fmtstream_update (argp_fmtstream_t fs) if (p >= buf) do --p; - while (p >= buf && isblank (*p)); + while (p >= buf && isblank ((unsigned char) *p)); nl = p + 1; /* The newline will replace the first blank. */ } else @@ -249,7 +248,7 @@ __argp_fmtstream_update (argp_fmtstream_t fs) if (p < nl) do ++p; - while (p < nl && !isblank (*p)); + while (p < nl && !isblank ((unsigned char) *p)); if (p == nl) { /* It already ends a line. No fussing required. */ @@ -262,7 +261,7 @@ __argp_fmtstream_update (argp_fmtstream_t fs) /* Swallow separating blanks. */ do ++p; - while (isblank (*p)); + while (isblank ((unsigned char) *p)); /* The next line will start here. */ nextline = p; }