Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 70090
Collapse All | Expand All

(-)./prozilla-1.3.6/src/http-retr.c (-2 / +2 lines)
Lines 189-202 Link Here
189
    /*
189
    /*
190
     * get the headers by sending GET 
190
     * get the headers by sending GET 
191
     */
191
     */
192
    sprintf(buffer,
192
    snprintf(buffer, sizeof(buffer),
193
	    "GET %s HTTP/1.0\r\nUser-Agent: %s%s\r\nHost: %s\r\nAccept: */*\r\nRange: bytes=%ld-%ld\r\n%s%s\r\n",
193
	    "GET %s HTTP/1.0\r\nUser-Agent: %s%s\r\nHost: %s\r\nAccept: */*\r\nRange: bytes=%ld-%ld\r\n%s%s\r\n",
194
	    connection->u.path, PACKAGE_NAME, VERSION,
194
	    connection->u.path, PACKAGE_NAME, VERSION,
195
	    connection->u.host,
195
	    connection->u.host,
196
	    connection->remote_startpos, connection->remote_endpos,
196
	    connection->remote_startpos, connection->remote_endpos,
197
	    referer ? referer : "",
197
	    referer ? referer : "",
198
	    wwwauth ? wwwauth : "");
198
	    wwwauth ? wwwauth : "");
199
199
	buffer[sizeof(buffer)-1] = '\0';
200
200
201
    debug_prz("HTTP request= %s\n", buffer);
201
    debug_prz("HTTP request= %s\n", buffer);
202
202
(-)./prozilla-1.3.6/src/http.c (-2 / +2 lines)
Lines 375-386 Link Here
375
   with HEAD */
375
   with HEAD */
376
376
377
377
378
    sprintf(buffer,
378
    snprintf(buffer, sizeof(buffer),
379
	    "HEAD %s HTTP/1.0\r\nUser-Agent: %s%s\r\nHost: %s\r\nAccept: */*\r\n%s%s\r\n",
379
	    "HEAD %s HTTP/1.0\r\nUser-Agent: %s%s\r\nHost: %s\r\nAccept: */*\r\n%s%s\r\n",
380
	    u->path, PACKAGE_NAME, VERSION, u->host, 
380
	    u->path, PACKAGE_NAME, VERSION, u->host, 
381
	    referer ? referer : "",
381
	    referer ? referer : "",
382
	    wwwauth ? wwwauth : "");
382
	    wwwauth ? wwwauth : "");
383
383
	buffer[sizeof(buffer)-1] = '\0';
384
    debug_prz("HTTP request= %s\n", buffer);
384
    debug_prz("HTTP request= %s\n", buffer);
385
385
386
    err = http_fetch_headers(sock, u, hs, buffer);
386
    err = http_fetch_headers(sock, u, hs, buffer);
(-)./prozilla-1.3.6/src/main.c (-2 / +2 lines)
Lines 1152-1161 Link Here
1152
1152
1153
int die(const char *args, ...)
1153
int die(const char *args, ...)
1154
{
1154
{
1155
    char p[MAX_MSG_SIZE];
1155
    char p[MAX_MSG_SIZE] = {'\0'};
1156
    va_list vp;
1156
    va_list vp;
1157
    va_start(vp, args);
1157
    va_start(vp, args);
1158
    vsprintf(p, args, vp);
1158
    vsnprintf(p, sizeof(p),args, vp);
1159
    va_end(vp);
1159
    va_end(vp);
1160
1160
1161
    /* indicate that we are out of the display loop */
1161
    /* indicate that we are out of the display loop */

Return to bug 70090