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.
This commit is contained in:
Joel Sherrill
2010-03-12 16:27:00 +00:00
parent 88353c47f2
commit 438997f6a4
2 changed files with 7 additions and 1 deletions

View File

@@ -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.

View File

@@ -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 ) {