aboutsummaryrefslogtreecommitdiffstats
path: root/params.c
diff options
context:
space:
mode:
authorMartin Pool <mbp@samba.org>2002-04-09 06:15:13 +0000
committerMartin Pool <mbp@samba.org>2002-04-09 06:15:13 +0000
commit07a874fd9b990c4ea1e370d350fc77f9ecc171b5 (patch)
tree708547f62e2dd669513af961d8f228c77e45906d /params.c
parente35080cede02c640ac482debfc40d8b2de4bb58e (diff)
downloadandroid_external_rsync-07a874fd9b990c4ea1e370d350fc77f9ecc171b5.tar.gz
android_external_rsync-07a874fd9b990c4ea1e370d350fc77f9ecc171b5.tar.bz2
android_external_rsync-07a874fd9b990c4ea1e370d350fc77f9ecc171b5.zip
Correction from Nelson Beebe: argument to functions such as isspace()
must be an int, not a char. This could cause sign-extension problems.
Diffstat (limited to 'params.c')
-rw-r--r--params.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/params.c b/params.c
index d87961b8..6d02053e 100644
--- a/params.c
+++ b/params.c
@@ -164,7 +164,7 @@ static int Continuation( char *line, int pos )
*/
{
pos--;
- while( (pos >= 0) && isspace(line[pos]) )
+ while( (pos >= 0) && isspace((int) line[pos]) )
pos--;
return( ((pos >= 0) && ('\\' == line[pos])) ? pos : -1 );
@@ -386,7 +386,7 @@ static BOOL Parameter( FILE *InFile, BOOL (*pfunc)(char *, char *), int c )
c = 0;
else
{
- for( end = i; (end >= 0) && isspace(bufr[end]); end-- )
+ for( end = i; (end >= 0) && isspace((int) bufr[end]); end-- )
;
c = getc( InFile );
}