Changeset 2546
- Timestamp:
- Mar 23, 2009 1:26:00 PM (16 years ago)
- Location:
- pjproject/branches/1.0
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/1.0
- Property svn:mergeinfo changed
/pjproject/trunk merged: 2428,2433
- Property svn:mergeinfo changed
-
pjproject/branches/1.0/pjsip/src/test-pjsip/msg_test.c
r2538 r2546 1867 1867 pjsip_hdr *parsed_hdr1=NULL, *parsed_hdr2=NULL; 1868 1868 char *input, *output; 1869 #if defined(PJSIP_UNESCAPE_IN_PLACE) && PJSIP_UNESCAPE_IN_PLACE!=0 1870 static char hcontent[1024]; 1871 #else 1872 char *hcontent; 1873 #endif 1869 1874 int rc; 1870 1875 … … 1874 1879 hname = pj_str(test->hname); 1875 1880 len = strlen(test->hcontent); 1881 #if defined(PJSIP_UNESCAPE_IN_PLACE) && PJSIP_UNESCAPE_IN_PLACE!=0 1882 PJ_ASSERT_RETURN(len < sizeof(hcontent), PJSIP_EMSGTOOLONG); 1883 strcpy(hcontent, test->hcontent); 1884 #else 1885 hcontent = test->hcontent; 1886 #endif 1887 1876 1888 parsed_hdr1 = (pjsip_hdr*) pjsip_parse_hdr(pool, &hname, 1877 test->hcontent, len,1889 hcontent, len, 1878 1890 &parsed_len); 1879 1891 if (parsed_hdr1 == NULL) { … … 1898 1910 hname = pj_str(test->hshort_name); 1899 1911 len = strlen(test->hcontent); 1900 parsed_hdr2 = (pjsip_hdr*) pjsip_parse_hdr(pool, &hname, test->hcontent, len, &parsed_len); 1912 #if defined(PJSIP_UNESCAPE_IN_PLACE) && PJSIP_UNESCAPE_IN_PLACE!=0 1913 PJ_ASSERT_RETURN(len < sizeof(hcontent), PJSIP_EMSGTOOLONG); 1914 strcpy(hcontent, test->hcontent); 1915 #else 1916 hcontent = test->hcontent; 1917 #endif 1918 1919 parsed_hdr2 = (pjsip_hdr*) pjsip_parse_hdr(pool, &hname, hcontent, len, &parsed_len); 1901 1920 if (parsed_hdr2 == NULL) { 1902 1921 PJ_LOG(3,(THIS_FILE, " error parsing header %s: %s", test->hshort_name, test->hcontent));
Note: See TracChangeset
for help on using the changeset viewer.