Changeset 1805
- Timestamp:
- Feb 18, 2008 1:50:55 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia/sdp.c
r1635 r1805 817 817 818 818 /* address */ 819 pj_scan_get_until_chr(scanner, " \t\r ", &ses->origin.addr);819 pj_scan_get_until_chr(scanner, " \t\r\n", &ses->origin.addr); 820 820 821 821 /* We've got what we're looking for, skip anything until newline */ … … 847 847 848 848 /* stop time */ 849 pj_scan_get_until_chr(scanner, " \t\r ", &str);849 pj_scan_get_until_chr(scanner, " \t\r\n", &str); 850 850 ses->time.stop = pj_strtoul(&str); 851 851 … … 869 869 870 870 /* get anything until newline (including whitespaces). */ 871 pj_scan_get_until_ch (scanner, '\r', str);871 pj_scan_get_until_chr(scanner, "\r\n", str); 872 872 873 873 /* newline. */ … … 892 892 893 893 /* address. */ 894 pj_scan_get_until_chr(scanner, " \t\r ", &conn->addr);894 pj_scan_get_until_chr(scanner, " \t\r\n", &conn->addr); 895 895 896 896 /* We've got what we're looking for, skip anything until newline */ … … 988 988 989 989 /* get value */ 990 if (*scanner->curptr != '\r' ) {991 pj_scan_get_until_ch (scanner, '\r', &attr->value);990 if (*scanner->curptr != '\r' && *scanner->curptr != '\n') { 991 pj_scan_get_until_chr(scanner, "\r\n", &attr->value); 992 992 } else { 993 993 attr->value.ptr = NULL;
Note: See TracChangeset
for help on using the changeset viewer.