summaryrefslogtreecommitdiff
path: root/misc/bidwatcher
diff options
context:
space:
mode:
authortron <tron>2003-07-16 13:52:15 +0000
committertron <tron>2003-07-16 13:52:15 +0000
commit0fef71d2532992d30ccdce606c1722a7ead55121 (patch)
treef3c91ec98bee670a76826d49821538bf928c1285 /misc/bidwatcher
parentd3e25657c377abbf47259623d15e3d3cb67691a5 (diff)
downloadpkgsrc-0fef71d2532992d30ccdce606c1722a7ead55121.tar.gz
Add a patch submitted my Uwe Klein via the sourceforge homepage to fix
time synchronization with eBay servers. Bump package revision.
Diffstat (limited to 'misc/bidwatcher')
-rw-r--r--misc/bidwatcher/Makefile3
-rw-r--r--misc/bidwatcher/distinfo3
-rw-r--r--misc/bidwatcher/patches/patch-ac66
3 files changed, 70 insertions, 2 deletions
diff --git a/misc/bidwatcher/Makefile b/misc/bidwatcher/Makefile
index 175a548afaf..59feb68923f 100644
--- a/misc/bidwatcher/Makefile
+++ b/misc/bidwatcher/Makefile
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.27 2003/07/14 06:53:40 tron Exp $
+# $NetBSD: Makefile,v 1.28 2003/07/16 13:52:15 tron Exp $
DISTNAME= bidwatcher-1.3.9
+PKGREVISION= 1
CATEGORIES= misc
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=bidwatcher/}
diff --git a/misc/bidwatcher/distinfo b/misc/bidwatcher/distinfo
index 65c81786db3..a7d1509257a 100644
--- a/misc/bidwatcher/distinfo
+++ b/misc/bidwatcher/distinfo
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.23 2003/07/14 06:53:41 tron Exp $
+$NetBSD: distinfo,v 1.24 2003/07/16 13:52:15 tron Exp $
SHA1 (bidwatcher-1.3.9.tar.gz) = 5f05ca89f45dbe76ff0db015361099dfa538aab8
Size (bidwatcher-1.3.9.tar.gz) = 152603 bytes
SHA1 (patch-aa) = 499a9a53cb555060ca8c53cffbd78eef569d722b
SHA1 (patch-ab) = 85052062bd165ba0ae3de05c887e3236c5ae7da7
+SHA1 (patch-ac) = 57bcdd594a1d21ae005faf3998d2433b927838ba
diff --git a/misc/bidwatcher/patches/patch-ac b/misc/bidwatcher/patches/patch-ac
new file mode 100644
index 00000000000..dacd1ab7459
--- /dev/null
+++ b/misc/bidwatcher/patches/patch-ac
@@ -0,0 +1,66 @@
+$NetBSD: patch-ac,v 1.8 2003/07/16 13:52:15 tron Exp $
+
+--- helpers.cpp.orig Thu Jul 10 05:37:25 2003
++++ helpers.cpp Wed Jul 16 15:48:26 2003
+@@ -1337,19 +1337,21 @@
+ // calculates the difference between ebay time and local time, returning
+ // the value in seconds.
+ //////////////////////////////////////////////////////////////////////////////
++#define CHLEN 0x40
++#define CHBUF 0x1000
+ int calcTimeDiff ( char * buffer)
+ {
+ struct timeval time_tt;
+ //time_t new_time_t = time(NULL);
+ gettimeofday(&time_tt, 0);
+ time_t new_time_t = time_tt.tv_sec;
+- char chHr[9];
+- char chMin[9];
+- char chSec[9];
+- char chYear[9];
+- char chMonth[9];
+- char chDay[9];
+- char lineBuff[1024];
++ char chHr[CHLEN];
++ char chMin[CHLEN];
++ char chSec[CHLEN];
++ char chYear[CHLEN];
++ char chMonth[CHLEN];
++ char chDay[CHLEN];
++ char lineBuff[CHBUF];
+ char * scratch;
+ #ifdef HAVE_SSTREAM
+ std::istringstream streamBuff(buffer);
+@@ -1359,7 +1361,7 @@
+ struct tm ebay_time;
+ ebay_time.tm_isdst = -1;
+ while(streamBuff) {
+- streamBuff.getline(lineBuff, 1024, '\n');
++ streamBuff.getline(lineBuff, CHBUF, '\n');
+ /*
+ if (strstr(lineBuff, "Look here to see what time eBay thinks it is")) {
+ scratch = strtok(lineBuff, ">");
+@@ -1379,17 +1381,17 @@
+ if (scratch) {
+ scratch = strtok(scratch, " ");
+ if (scratch) scratch = strtok(0, " ");
+- if (scratch) strcpy(chMonth, scratch);
++ if (scratch) strncpy(chMonth, scratch, CHLEN);
+ scratch = strtok(0, " ");
+- if (scratch) strcpy(chDay, scratch);
++ if (scratch) strncpy(chDay, scratch, CHLEN);
+ scratch = strtok(0, " ");
+- if (scratch) strcpy(chYear, scratch);
++ if (scratch) strncpy(chYear, scratch, CHLEN);
+ scratch = strtok(0,": ");
+- if (scratch) strcpy(chHr, scratch);
++ if (scratch) strncpy(chHr, scratch, CHLEN);
+ scratch = strtok(0,":");
+- if (scratch) strcpy(chMin, scratch);
++ if (scratch) strncpy(chMin, scratch, CHLEN);
+ scratch = strtok(0, " ");
+- if (scratch) strcpy(chSec, scratch);
++ if (scratch) strncpy(chSec, scratch, CHLEN);
+ scratch = strtok(0, "<");
+ break;
+ }