Changeset 3207 for pjproject/trunk
- Timestamp:
- Jun 16, 2010 2:49:37 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/src/pj/string.c
r2394 r3207 70 70 PJ_DEF(pj_str_t*) pj_strltrim( pj_str_t *str ) 71 71 { 72 char *end = str->ptr + str->slen; 72 73 register char *p = str->ptr; 73 while (p j_isspace(*p))74 while (p < end && pj_isspace(*p)) 74 75 ++p; 75 76 str->slen -= (p - str->ptr);
Note: See TracChangeset
for help on using the changeset viewer.