Ignore:
Timestamp:
Jul 2, 2006 9:29:09 AM (18 years ago)
Author:
bennylp
Message:

Fixed bugs in scanner: (1) pj_cis_match() takes int argument, so when ASCII character above 127 is given, it will access the array with negative index, and (2) pj_scan_get_newline() may incorrectly eat two newlines when the second newline is a header continuation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib-util/include/pjlib-util/scanner.h

    r472 r570  
    157157 * @return          Non-zero if match (not necessarily one). 
    158158 */ 
    159 PJ_INLINE(int) pj_cis_match( const pj_cis_t *cis, int c ) 
     159PJ_INLINE(int) pj_cis_match( const pj_cis_t *cis, pj_uint8_t c ) 
    160160{ 
    161161    return PJ_CIS_ISSET(cis, c); 
Note: See TracChangeset for help on using the changeset viewer.