diff options
| author | Martin Pool <mbp@samba.org> | 2002-04-09 06:15:13 +0000 |
|---|---|---|
| committer | Martin Pool <mbp@samba.org> | 2002-04-09 06:15:13 +0000 |
| commit | 07a874fd9b990c4ea1e370d350fc77f9ecc171b5 (patch) | |
| tree | 708547f62e2dd669513af961d8f228c77e45906d /params.c | |
| parent | e35080cede02c640ac482debfc40d8b2de4bb58e (diff) | |
| download | android_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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 ); } |
