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
74
75
76
77
|
--- a/report.c
+++ b/report.c
@@ -54,7 +54,7 @@
char accsmart[MAXLEN];
char crc2[MAXLEN/2 -1];
char siteind[MAX_TRUNCATED_URL];
- char arqtt[256];
+ char arqtt[MAX_USER_FNAME_LEN * 2 + MAXLEN + 10];
char *oldurltt=NULL;
char oldaccdiatt[11],oldacchoratt[9];
char tmp3[MAXLEN];
--- a/util.c
+++ b/util.c
@@ -671,10 +671,10 @@
char *buildtime(long long int elap)
{
int num = elap / 1000;
- int hor = 0;
- int min = 0;
- int sec = 0;
- static char buf[12];
+ short int hor = 0;
+ short int min = 0;
+ short int sec = 0;
+ static char buf[15];
buf[0]='\0';
@@ -1236,10 +1236,10 @@
char *fixtime(long long int elap)
{
int num = elap / 1000;
- int hor = 0;
- int min = 0;
- int sec = 0;
- static char buf[12];
+ short int hor = 0;
+ short int min = 0;
+ short int sec = 0;
+ static char buf[15];
hor=num / 3600;
min=(num % 3600) / 60;
@@ -1248,7 +1248,7 @@
if(hor==0 && min==0 && sec==0)
strcpy(buf,"0");
else
- sprintf(buf,"%d:%02d:%02d",hor,min,sec);
+ sprintf(buf,"%02d:%02d:%02d",hor,min,sec);
return buf;
}
--- a/index.c
+++ b/index.c
@@ -89,9 +89,9 @@
char monthdir[MAXLEN];
char monthname1[9], monthname2[9];
char nmonth[30];
- char monthnum[10];
+ char monthnum[15];
char dayindex[MAXLEN];
- char daynum[10];
+ char daynum[15];
char title[80];
int yearsort[150];
int nyears;
--- a/userinfo.c
+++ b/userinfo.c
@@ -67,7 +67,7 @@
int skip;
int flen;
int count, clen;
- char cstr[9];
+ char cstr[10];
last=NULL;
for (group=first_user_group ; group ; group=group->next) {
|