From 438997f6a415d21fc20cfcfa2f1e14f1f04062c5 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 12 Mar 2010 16:27:00 +0000 Subject: 2010-03-12 Joel Sherrill * 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. --- tools/build/ChangeLog | 6 ++++++ tools/build/eolstrip.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'tools/build') 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 + + * 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 * 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 ) { -- cgit v1.2.3