Changeset 2672


Ignore:
Timestamp:
08/09/07 18:04:37 (6 years ago)
Author:
mickey
Message:

neod: fix (hopefully) off-by-one error

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/target/OM-2007.2/daemons/neod/src/buttonactions.c

    r2671 r2672  
    233233gboolean neod_buttonactions_input_check( GSource* source ) 
    234234{ 
    235     for ( int i = 0; i < max_input_fd; ++i ) 
     235    for ( int i = 0; i <= max_input_fd; ++i ) 
    236236        if ( input_fd[i].revents & G_IO_IN ) 
    237237            return TRUE; 
     
    242242gboolean neod_buttonactions_input_dispatch( GSource* source, GSourceFunc callback, gpointer data ) 
    243243{ 
    244     for ( int i = 0; i < max_input_fd; ++i ) 
     244    for ( int i = 0; i <= max_input_fd; ++i ) 
    245245    { 
    246246        if ( input_fd[i].revents & G_IO_IN ) 
Note: See TracChangeset for help on using the changeset viewer.