Changeset 1927

Show
Ignore:
Timestamp:
08/17/2007 09:47:24 PM (13 months ago)
Author:
jan
Message:

fixed wrong result of buffer_caseless_compare("a", "ab") (fixes #1287)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/lighttpd-1.4.x/src/buffer.c

    r1723 r1927  
    575575        } 
    576576 
    577         return 0; 
     577        /* all chars are the same, and the length match too 
     578         * 
     579         * they are the same */ 
     580        if (a_len == b_len) return 0; 
     581 
     582        /* if a is shorter then b, then b is larger */ 
     583        return (a_len - b_len); 
    578584} 
    579585