pkgsrc/misc/bidwatcher/patches/patch-ab

13 lines
745 B
Text

$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);
}