The R Project SVN R

Rev

Rev 61850 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 61850 Rev 62559
Line 1359... Line 1359...
1359
    }
1359
    }
1360
    blen += (int) strlen(method) + (int) strlen(ctxt->path) + 23;
1360
    blen += (int) strlen(method) + (int) strlen(ctxt->path) + 23;
1361
#ifdef HAVE_ZLIB_H
1361
#ifdef HAVE_ZLIB_H
1362
    blen += 23;
1362
    blen += 23;
1363
#endif
1363
#endif
1364
    p = bp = xmlMalloc(blen);
1364
    p = bp = xmlMalloc(blen + 8);
-
 
1365
    memset(p, 0, blen + 8);
1365
    if (proxy) {
1366
    if (proxy) {
1366
	if (ctxt->port != 80) {
1367
	if (ctxt->port != 80) {
1367
	    p += snprintf( p, blen - (p - bp), "%s http://%s:%d%s", 
1368
	    p += snprintf( p, blen - (p - bp), "%s http://%s:%d%s", 
1368
			method, ctxt->hostname,
1369
			method, ctxt->hostname,
1369
		 	ctxt->port, ctxt->path );
1370
		 	ctxt->port, ctxt->path );