summaryrefslogtreecommitdiff
path: root/misc/bidwatcher/patches
diff options
context:
space:
mode:
authordmcmahill <dmcmahill@pkgsrc.org>2002-12-30 02:09:25 +0000
committerdmcmahill <dmcmahill@pkgsrc.org>2002-12-30 02:09:25 +0000
commitc9c2283065a157a5d943e67181ee656f9db7367b (patch)
tree91b8d2b67a4c6839d9a009552b98429866b23cd6 /misc/bidwatcher/patches
parentb87b25bde6a1c5e59a755021bfb60701b9a2a878 (diff)
downloadpkgsrc-c9c2283065a157a5d943e67181ee656f9db7367b.tar.gz
fix some format string bugs on 64 bit systems.
Diffstat (limited to 'misc/bidwatcher/patches')
-rw-r--r--misc/bidwatcher/patches/patch-aa13
-rw-r--r--misc/bidwatcher/patches/patch-ab13
2 files changed, 26 insertions, 0 deletions
diff --git a/misc/bidwatcher/patches/patch-aa b/misc/bidwatcher/patches/patch-aa
new file mode 100644
index 00000000000..f11610fae49
--- /dev/null
+++ b/misc/bidwatcher/patches/patch-aa
@@ -0,0 +1,13 @@
+$NetBSD: patch-aa,v 1.14 2002/12/30 02:09:26 dmcmahill Exp $
+
+--- bidwatcher.cpp.orig Mon Dec 23 02:49:08 2002
++++ bidwatcher.cpp
+@@ -4093,7 +4093,7 @@ void TimeSync()
+
+ if (strlen(HtmlBuff) < 1000) {
+ #ifdef DEBUG_NETWORK
+- fprintf(stderr, "Short web page (%d bytes) from ebay's time web page, retrying... (%d)\n", strlen(HtmlBuff), i);
++ fprintf(stderr, "Short web page (%ld bytes) from ebay's time web page, retrying... (%d)\n", (long int)strlen(HtmlBuff), i);
+ #endif
+ continue;
+ }
diff --git a/misc/bidwatcher/patches/patch-ab b/misc/bidwatcher/patches/patch-ab
new file mode 100644
index 00000000000..afb077fd036
--- /dev/null
+++ b/misc/bidwatcher/patches/patch-ab
@@ -0,0 +1,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);
+ }