diff options
-rw-r--r-- | misc/bidwatcher/Makefile | 5 | ||||
-rw-r--r-- | misc/bidwatcher/distinfo | 8 | ||||
-rw-r--r-- | misc/bidwatcher/patches/patch-ac | 46 |
3 files changed, 21 insertions, 38 deletions
diff --git a/misc/bidwatcher/Makefile b/misc/bidwatcher/Makefile index 0ea542a8119..754b16fa6ea 100644 --- a/misc/bidwatcher/Makefile +++ b/misc/bidwatcher/Makefile @@ -1,7 +1,6 @@ -# $NetBSD: Makefile,v 1.38 2004/07/20 13:59:12 tron Exp $ +# $NetBSD: Makefile,v 1.39 2004/09/21 07:43:10 tron Exp $ -DISTNAME= bidwatcher-1.3.15 -PKGREVISION= 1 +DISTNAME= bidwatcher-1.3.16 CATEGORIES= misc MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=bidwatcher/} diff --git a/misc/bidwatcher/distinfo b/misc/bidwatcher/distinfo index cacf00891e5..e74b21cfd2a 100644 --- a/misc/bidwatcher/distinfo +++ b/misc/bidwatcher/distinfo @@ -1,5 +1,5 @@ -$NetBSD: distinfo,v 1.31 2004/07/20 13:59:12 tron Exp $ +$NetBSD: distinfo,v 1.32 2004/09/21 07:43:10 tron Exp $ -SHA1 (bidwatcher-1.3.15.tar.gz) = 96ab2167b7ab1710969c4b6f7b28766de76a9f82 -Size (bidwatcher-1.3.15.tar.gz) = 178532 bytes -SHA1 (patch-ac) = eafc0e9b2626c6b8680a594353f83523959b5573 +SHA1 (bidwatcher-1.3.16.tar.gz) = 7ca785f05d9856e60be2f7bbaaf72ad37135eca4 +Size (bidwatcher-1.3.16.tar.gz) = 186960 bytes +SHA1 (patch-ac) = 785fdb2dc9ed8ce752a11b02f32b913451cf5533 diff --git a/misc/bidwatcher/patches/patch-ac b/misc/bidwatcher/patches/patch-ac index 761bf89f73f..319c70b82fe 100644 --- a/misc/bidwatcher/patches/patch-ac +++ b/misc/bidwatcher/patches/patch-ac @@ -1,35 +1,19 @@ -$NetBSD: patch-ac,v 1.11 2004/07/20 13:59:12 tron Exp $ +$NetBSD: patch-ac,v 1.12 2004/09/21 07:43:10 tron Exp $ ---- helpers.cpp.orig 2004-04-23 22:23:28.000000000 +0200 -+++ helpers.cpp 2004-07-20 15:48:50.000000000 +0200 -@@ -319,7 +319,25 @@ - // strip the html tags - for (u = 0; u < buffLength; u++) { - c = stringToStrip[u]; -- if (c == '<') IncludeFlag=5; -+ if (u+7<buffLength && -+ ( 0 == strncmp(&stringToStrip[u],"<script",7) || -+ 0 == strncmp(&stringToStrip[u],"<SCRIPT",7) ) ) -+ IncludeFlag = 6; -+ else if (u+8<buffLength && -+ ( 0 == strncmp(&stringToStrip[u],"</script",8) || -+ 0 == strncmp(&stringToStrip[u],"</SCRIPT",8) ) ) -+ IncludeFlag = 5; -+ else if (IncludeFlag == 6 && (c == '>' || c == '<') ) -+ IncludeFlag = 6; -+ else if (c == '<') { -+ IncludeFlag=5; -+ if (u+4<buffLength && -+ ( 0 == strncmp(&stringToStrip[u],"<br",3) -+ || 0 == strncmp(&stringToStrip[u],"<td",3) -+ || 0 == strncmp(&stringToStrip[u],"<tr",3) ) -+ && Buff[BuffIdx-1] != '\n' ) -+ Buff[BuffIdx++] = '\n'; -+ } - else if (c == '>') IncludeFlag=10; - else if (IncludeFlag==10) { - if ((BuffIdx > 0) && (c == ' ') && -@@ -530,7 +548,8 @@ +--- helpers.cpp.orig 2004-08-31 02:40:13.000000000 +0200 ++++ helpers.cpp 2004-09-21 09:40:39.000000000 +0200 +@@ -120,9 +120,7 @@ + + bool strToFloat(const char *str, float &x) + { +- char *end = 0; +- x = strtof(str, &end); +- return end != str && *end == 0; ++ return (sscanf(str, "%f", &x) == 1); + } + + float calculateBidIncrement(float currentBid, const char *currency) +@@ -580,7 +578,8 @@ return PB_OUTBID; else if (strstr(Buff, "You have been outbid")) return PB_OUTBID; |