[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
A bug in GNU spell
From: |
Luca Saiu |
Subject: |
A bug in GNU spell |
Date: |
Mon, 21 Jul 2003 06:20:28 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; Linux ppc; en-US; rv:1.4a) Gecko/20030304 |
Hi.
I found a little bug in GNU spell 1.0. It's several time old but
seems the latest version.
I saw the misbehaviour (spell does not react to any command line
argument or option including --help and --version, and hangs) happening
on GNU/Linux PowerPC, and is due to the implementation-dependent
signedness of the C char type; a char variable is compared with a
constant which happens to be neagative (EOF), and the test always yields
the same value because of the truncation due to limited width.
The fix is really trivial: change the declaration from char into int.
The lines to update are spell.c:162 and str.c:139
Best regards,
--
Luca Saiu, maintainer of GNU epsilon
http://www.gnu.org/software/epsilon
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- A bug in GNU spell,
Luca Saiu <=