Changeset fef7813 for help.c


Ignore:
Timestamp:
2010-09-05T11:31:22Z (11 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
ed320e8
Parents:
41e0c00
Message:

Fix compiler warnings. Also fixing irc_send_motd(), which so far got away
with a horrible practice of reading the MOTD file one by one.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • help.c

    r41e0c00 rfef7813  
    157157                        }
    158158                       
    159                         lseek( h->fd, h->offset.file_offset, SEEK_SET );
    160                         read( h->fd, s, h->length );
     159                        if( lseek( h->fd, h->offset.file_offset, SEEK_SET ) == -1 ||
     160                            read( h->fd, s, h->length ) != h->length )
     161                                return NULL;
    161162                }
    162163                else
Note: See TracChangeset for help on using the changeset viewer.