Changeset 3230


Ignore:
Timestamp:
Jun 30, 2010 2:19:54 AM (10 years ago)
Author:
ming
Message:

Fix #1099: recommit changeset r3207 which was undone by r3210

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/projects/cli/pjlib/src/pj/string.c

    r3210 r3230  
    7070PJ_DEF(pj_str_t*) pj_strltrim( pj_str_t *str ) 
    7171{ 
     72    char *end = str->ptr + str->slen;  
    7273    register char *p = str->ptr; 
    73     while (pj_isspace(*p)) 
     74    while (p < end && pj_isspace(*p)) 
    7475        ++p; 
    7576    str->slen -= (p - str->ptr); 
Note: See TracChangeset for help on using the changeset viewer.