fix handling of fgetc return value
+2002-09-18 [christoph] 0.8.2claws57
+
+ * src/pine.c
+ fix handling of fgetc return value
+
2002-09-17 [alfons] 0.8.2claws56
* src/summaryview.c
dnl Process this file with autoconf to produce a configure script.
+AC_PREREQ(2.50)
AC_INIT(src/main.c)
+
PACKAGE=sylpheed
dnl version number
MICRO_VERSION=2
INTERFACE_AGE=0
BINARY_AGE=0
-EXTRA_VERSION=claws56
+EXTRA_VERSION=claws57
VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
dnl set $target
*/
static gchar *pine_read_line( PineFile *pineFile ) {
gchar buf[ PINEBUFSIZE ];
+ int c;
gchar ch;
gchar *ptr;
ptr = buf;
while( TRUE ) {
*ptr = '\0';
- ch = fgetc( pineFile->file );
- if( ch == '\0' || ch == EOF ) {
+ c = fgetc( pineFile->file );
+ if( c == EOF ) {
+ if( *buf == '\0' ) return NULL;
+ break;
+ }
+ ch = (gchar) c;
+ if( ch == '\0' ) {
if( *buf == '\0' ) return NULL;
break;
}