1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
$NetBSD: patch-aa,v 1.3 2001/10/07 22:17:20 tron Exp $
--- bidwatcher.cpp.orig Thu Jul 5 02:31:54 2001
+++ bidwatcher.cpp Mon Oct 8 00:10:20 2001
@@ -639,7 +639,7 @@
if(proxyurl!=NULL) delete(proxyurl);
if(strlen(proxystring)>2)
- proxyurl=new URL(g_strdup_printf("http://%s",proxystring),NULL);
+ proxyurl=new URL(g_strdup_printf("http://%s/",proxystring),NULL);
else proxyurl=NULL;
if(timesyncurl!=NULL) delete(timesyncurl);
@@ -1712,10 +1712,11 @@
fprintf(file,"option trackbids %s\n", trackBids?"yes":"no");
fprintf(file,"option updateonstartup %s\n", doStartup?"yes":"no");
fprintf(file,"option autodelete %s\n", autoDelete?"yes":"no");
- fprintf(file,"option snipedelay %.2f\n", snipeDelay);
+ fprintf(file,"option snipedelay %.d\n", snipeDelay);
if(clockIsSet) fprintf(file,"option timediff %d\n",timeDiff);
fprintf(file, "user %s %s\n",authID,authPASS);
fprintf(file, "option browser %s\n",browserPATH);
+ fprintf(file, "option email %s\n",emailPATH);
fprintf(file, "option proxy %s\n",proxystring);
for ( int i=0; i < aucIdx; i++ )
{
@@ -2508,7 +2509,7 @@
if(proxyurl!=NULL) delete(proxyurl);
if(strlen(proxystring)>2)
- proxyurl=new URL(g_strdup_printf("http://%s",proxystring),NULL);
+ proxyurl=new URL(g_strdup_printf("http://%s/",proxystring),NULL);
else proxyurl=NULL;
if(timesyncurl!=NULL) delete(timesyncurl);
@@ -2564,7 +2565,7 @@
}
if(!strcasecmp(which,"snipedelay")) {
- fscanf(file,"%.2f",&snipeDelay);
+ fscanf(file,"%d",&snipeDelay);
recognized=1;
}
@@ -2575,12 +2576,17 @@
}
if(!strcasecmp(which,"browser")) {
- fscanf(file,"%199[^\n]",browserPATH);
+ fscanf(file," %199[^\n]",browserPATH);
+ recognized=1;
+ }
+
+ if(!strcasecmp(which,"email")) {
+ fscanf(file," %199[^\n]",emailPATH);
recognized=1;
}
if(!strcasecmp(which,"proxy")) {
- fscanf(file,"%199[^\n]",proxystring);
+ fscanf(file," %199[^\n]",proxystring);
recognized=1;
if(strspn(proxystring," ")==strlen(proxystring)) proxystring[0]='\0';
}
@@ -2618,7 +2624,7 @@
fclose(file);
if(proxyurl!=NULL) delete(proxyurl);
if(strlen(proxystring)>2)
- proxyurl=new URL(g_strdup_printf("http://%s",proxystring),NULL);
+ proxyurl=new URL(g_strdup_printf("http://%s/",proxystring),NULL);
else proxyurl=NULL;
if(timesyncurl!=NULL) delete(timesyncurl);
|