Ignore:
Timestamp:
11/07/08 04:43:36 (4 years ago)
Author:
wd
Message:

Fix buffer underflow

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ithildin-1.1/modules/ircd/protocols/shared/rfc1459_io.c

    r821 r825  
    5959             * we have parsed. */ 
    6060            /* null-terminate and get rid of the [\r]\n sequence. */ 
    61             if (*(s - 1) == '\r') 
     61            if (s > cp->buf && *(s - 1) == '\r') 
    6262                *(s - 1) = '\0'; 
    6363            else 
Note: See TracChangeset for help on using the changeset viewer.