1
2
3
4
5
6
7
8
9
10
11
12
13
|
$NetBSD: patch-ab,v 1.5 2002/12/30 02:09:27 dmcmahill Exp $
--- netstuff.cpp.orig Sat Oct 19 14:40:15 2002
+++ netstuff.cpp
@@ -353,7 +353,7 @@ int fetchURL(URL *url, int Post, char **
if (*Args != '\0')
Args++;
- sprintf(lineBuff, "POST %.*s HTTP/1.1\r\nConnection: close\r\nHost: %s\r\nContent-Length: %d\r\n%s\r\n%s", URLLen, url->url, url->hoststring, strlen(Args), UserAgent, Args);
+ sprintf(lineBuff, "POST %.*s HTTP/1.1\r\nConnection: close\r\nHost: %s\r\nContent-Length: %ld\r\n%s\r\n%s", URLLen, url->url, url->hoststring, (long int) strlen(Args), UserAgent, Args);
} else {
sprintf(lineBuff, "GET %s HTTP/1.1\r\nConnection: close\r\nHost: %s\r\n%s\r\n", url->url, url->hoststring, UserAgent);
}
|