Changeset 821 for branches


Ignore:
Timestamp:
10/16/08 00:42:19 (4 years ago)
Author:
wd
Message:

Fix unallocated memory access (order of checks reversed)

File:
1 edited

Legend:

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

    r813 r821  
    4242                 * forth undeterred, if we don't, trim the message */ 
    4343                s = cp->buf; 
    44                 while (*s != '\n' && s < cp->buf + cp->bufsize) 
     44                while (s < cp->buf + cp->bufsize && *s != '\n') 
    4545                    s++; 
    4646 
Note: See TracChangeset for help on using the changeset viewer.