summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tools/build/ChangeLog6
-rw-r--r--tools/build/eolstrip.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/tools/build/ChangeLog b/tools/build/ChangeLog
index 2a4e14c655..cb559b66ee 100644
--- a/tools/build/ChangeLog
+++ b/tools/build/ChangeLog
@@ -1,3 +1,9 @@
+2010-03-12 Joel Sherrill <joel.sherrill@oarcorp.com>
+
+ * eolstrip.c: Readdress use of ctype methods per recommendation from
+ D.J. Delorie on the newlib mailing list. We should pass an unsigned
+ char into these methods.
+
2007-09-18 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am: Rename bin2c to rtems-bin2c.
diff --git a/tools/build/eolstrip.c b/tools/build/eolstrip.c
index c944ae6663..398ff72116 100644
--- a/tools/build/eolstrip.c
+++ b/tools/build/eolstrip.c
@@ -197,7 +197,7 @@ process(char *arg)
if ( buffer[ length ] != '\n' )
error(ERR_ERRNO|ERR_FATAL, "Line %d too long in %s\n", line_number, arg);
- while ( isspace( (int) buffer[ length ] ) )
+ while ( isspace( (unsigned char) buffer[ length ] ) )
buffer[ length-- ] = '\0';
if ( test_only ) {