Mercurial > noffle
diff src/util.c @ 109:2bedacfe1ba7 noffle
[svn] Fix header line reading buf
author | bears |
---|---|
date | Mon, 19 Jun 2000 22:56:12 +0100 |
parents | 93cc929329eb |
children | 3c71e28c8eef |
line wrap: on
line diff
--- a/src/util.c Tue Jun 13 07:44:21 2000 +0100 +++ b/src/util.c Mon Jun 19 22:56:12 2000 +0100 @@ -1,7 +1,7 @@ /* util.c - $Id: util.c 110 2000-05-19 15:12:45Z bears $ + $Id: util.c 149 2000-06-19 21:56:12Z bears $ */ #if HAVE_CONFIG_H @@ -127,7 +127,7 @@ const char * res = Utl_getLn( result, p ); /* Look for followon line if this isn't a blank line. */ - if ( res != NULL && !isspace( result[ 0 ] ) ) + if ( res != NULL && result[ 0 ] != '\0' && ! isspace( result[ 0 ] ) ) for(;;) { Str nextLine; @@ -137,7 +137,7 @@ nextLine[ 0 ] = '\0'; res = Utl_getLn( nextLine, res ); if ( res == NULL || nextLine[ 0 ] == '\0' - || !isspace( nextLine[ 0 ] ) ) + || ! isspace( nextLine[ 0 ] ) ) { res = here; break;