projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
test-pipe: make a bit more robust.
[gnulib.git]
/
lib
/
argp-fmtstream.c
diff --git
a/lib/argp-fmtstream.c
b/lib/argp-fmtstream.c
index
c89a99c
..
7e6d9c6
100644
(file)
--- 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);
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. */
--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;
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
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;
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. */
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;
/* Swallow separating blanks. */
do
++p;
- while (isblank (*p));
+ while (isblank (
(unsigned char)
*p));
/* The next line will start here. */
nextline = p;
}
/* The next line will start here. */
nextline = p;
}