Changeset 535

Show
Ignore:
Timestamp:
04/22/04 10:05:17 (5 years ago)
Author:
smoku
Message:

checking return code of stream_eat()

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/stream.c

    r533 r535  
    1 /* $Id: stream.c,v 1.24 2004/04/14 11:00:41 jajcus Exp $ */ 
     1/* $Id: stream.c,v 1.25 2004/04/22 08:05:17 smoku Exp $ */ 
    22 
    33/* 
     
    225225        s->read_buf[br]=0; 
    226226        debug("IN: %s",s->read_buf); 
    227         xstream_eat(s->xs,s->read_buf,br); 
    228         return TRUE; 
     227        if(xstream_eat(s->xs,s->read_buf,br) > XSTREAM_NODE){ 
     228                g_error(L_("Error reading from stream")); 
     229                return FALSE; 
     230        }else{ 
     231                return TRUE; 
     232        } 
    229233} 
    230234