projects
/
pspp-builds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4eb91d0
)
(postopen) Cast `char' to `unsigned char' before passing to isspace().
author
Ben Pfaff
<blp@gnu.org>
Sun, 31 Jul 2005 05:57:09 +0000
(
05:57
+0000)
committer
Ben Pfaff
<blp@gnu.org>
Sun, 31 Jul 2005 05:57:09 +0000
(
05:57
+0000)
src/ChangeLog
patch
|
blob
|
history
src/postscript.c
patch
|
blob
|
history
diff --git
a/src/ChangeLog
b/src/ChangeLog
index 7cee2d7b0e9ec7ce6739ac881d3ab34df13435bc..3970abe18910193df392c31ddd447a0bb9dd1fe3 100644
(file)
--- a/
src/ChangeLog
+++ b/
src/ChangeLog
@@
-1,3
+1,8
@@
+Sat Jul 30 22:56:12 2005 Ben Pfaff <blp@gnu.org>
+
+ * postscript.c: (postopen) Cast `char' to `unsigned char' before
+ passing to isspace().
+
Sat Jul 30 22:52:09 2005 Ben Pfaff <blp@gnu.org>
* pfm-read.c: (read_variables) Fix msg() bug found by -Wformat.
diff --git
a/src/postscript.c
b/src/postscript.c
index c828a0df2a49136cf73433458384996355516d31..c5bde5e65a4f2aaa30d1f572c61195834aba499a 100644
(file)
--- a/
src/postscript.c
+++ b/
src/postscript.c
@@
-1452,7
+1452,7
@@
postopen (struct file_ext *f)
char *beg;
beg = buf2 = fn_interp_vars (buf, ps_get_var);
len = strlen (buf2);
- while (isspace (*beg))
+ while (isspace (
(unsigned char)
*beg))
beg++, len--;
if (beg[len - 1] == '\n')
len--;