Changeset 13902


Ignore:
Timestamp:
2009-01-06T21:10:53+01:00 (9 years ago)
Author:
nbd
Message:

ead: fix array overrun

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/ead/src/ead.c

    r13883 r13902  
    345345        set_state(EAD_TYPE_SET_USERNAME); /* clear old state */ 
    346346        strncpy(username, user->username, sizeof(username)); 
    347         username[sizeof(username)] = 0; 
     347        username[sizeof(username) - 1] = 0; 
    348348 
    349349        msg = &pktbuf->msg; 
Note: See TracChangeset for help on using the changeset viewer.