X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=inline;f=lib%2Fargp-fmtstream.c;h=7e6d9c6982e9d336765ba998b039179781ae7c19;hb=deb58d481fc8dc345e463002c7087a08a4f1d5f0;hp=c89a99ca1cc383edf94b243a77b3ecdcbb0e488c;hpb=57fdfd3f8ec62b105c53bcdf6f127c35c7fe7391;p=gnulib.git diff --git a/lib/argp-fmtstream.c b/lib/argp-fmtstream.c index c89a99ca1..7e6d9c698 100644 --- a/lib/argp-fmtstream.c +++ b/lib/argp-fmtstream.c @@ -226,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. */ @@ -236,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 @@ -248,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. */ @@ -261,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; }