On systems like PPC and Sparc a C "char" is unsigned by default.
So it can not hold the magic EOF that's returned by fgetc() on end-of-file,
because EOF usually is -1. So the parser fails to detect and end-of-file
condition on such systems.
The attached patch fixes this by using "int" for the "ch" variable.
(fgetc() also returns an "int" type)
Nobody/Anonymous
None
None
Public
| Filename | Description | Download |
|---|---|---|
| fix-not-enough-space-to-store-word.patch | Patch | Download |
| Field | Old Value | Date | By |
|---|---|---|---|
| File Added | 326703: fix-not-enough-space-to-store-word.patch | 2009-05-12 10:41 | tuxsoft |