Ticket #912: fix.diff

File fix.diff, 982 bytes (added by cristian, 13 years ago)
  • source/lib/input.cpp

     
    77 * distribute, sublicense, and/or sell copies of the Software, and to
    88 * permit persons to whom the Software is furnished to do so, subject to
    99 * the following conditions:
    10  * 
     10 *
    1111 * The above copyright notice and this permission notice shall be included
    1212 * in all copies or substantial portions of the Software.
    13  * 
     13 *
    1414 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
    1515 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
    1616 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
     
    4343    if(handler_stack_top >= MAX_HANDLERS)
    4444        WARN_IF_ERR(ERR::LIMIT);
    4545
    46     handler_stack[handler_stack_top++] = handler;
     46    handler_stack_top++;
     47    handler_stack[handler_stack_top] = handler;
    4748}
    4849
    4950void in_reset_handlers()