Changeset 2724 for pjproject/trunk/pjsip/src/test/msg_test.c
- Timestamp:
- May 29, 2009 1:04:03 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/test/msg_test.c
r2695 r2724 366 366 367 367 while (hdr1 != &parsed_msg->hdr && hdr2 != &ref_msg->hdr) { 368 len = hdr1->vptr->print_on(hdr1, str1.ptr, BUFLEN);369 if (len < 1) {368 len = pjsip_hdr_print_on(hdr1, str1.ptr, BUFLEN); 369 if (len < 0) { 370 370 status = -40; 371 371 goto on_return; … … 374 374 str1.slen = len; 375 375 376 len = hdr2->vptr->print_on(hdr2, str2.ptr, BUFLEN);377 if (len < 1) {376 len = pjsip_hdr_print_on(hdr2, str2.ptr, BUFLEN); 377 if (len < 0) { 378 378 status = -50; 379 379 goto on_return; … … 1945 1945 output = (char*) pj_pool_alloc(pool, 1024); 1946 1946 len = pjsip_hdr_print_on(parsed_hdr1, output, 1024); 1947 if (len < 1|| len >= 1024) {1947 if (len < 0 || len >= 1024) { 1948 1948 PJ_LOG(3,(THIS_FILE, " header too long: %s: %s", test->hname, test->hcontent)); 1949 1949 return -530;
Note: See TracChangeset
for help on using the changeset viewer.