summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
b73185e)
EOF can be (and is likely) negative. This showed up on
arm7, which apparently uses unsigned char for char.
s->msg_style = MS_UNKNOWN;
for (i = 0, cp = text; i < sizeof text; ++i, ++cp) {
s->msg_style = MS_UNKNOWN;
for (i = 0, cp = text; i < sizeof text; ++i, ++cp) {
- if ((*cp = Getc (s)) == EOF) {
+ if ((signed char) (*cp = Getc (s)) == EOF) {
char *cp;
for (i = 0, cp = text; i < s->edelimlen; ++i, ++cp) {
char *cp;
for (i = 0, cp = text; i < s->edelimlen; ++i, ++cp) {
- if ((*cp = Getc (s)) == EOF) {
+ if ((signed char) (*cp = Getc (s)) == EOF) {