File: 0002-fix-build-errors.patch

package info (click to toggle)
sarg 2.4.0-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 5,860 kB
  • sloc: ansic: 17,692; sh: 4,581; xml: 371; javascript: 352; php: 205; makefile: 184; sed: 16; pascal: 2
file content (35 lines) | stat: -rw-r--r-- 835 bytes parent folder | download | duplicates (2)
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
From: Luigi Gangitano <luigi@debian.org>
Date: Mon, 24 Feb 2020 00:46:38 +0100
Subject: fix-build-errors

---
 index.c    | 2 +-
 userinfo.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/index.c b/index.c
index 210485a..e87831e 100644
--- a/index.c
+++ b/index.c
@@ -535,7 +535,7 @@ static void make_date_index(void)
 	struct dirent *direntp;
 	char yearindex[MAXLEN];
 	char yeardir[MAXLEN];
-	char yearnum[10];
+	char yearnum[14];
 	int yearsort[150];
 	int nyears;
 	int year;
diff --git a/userinfo.c b/userinfo.c
index 7020203..f17dc25 100644
--- a/userinfo.c
+++ b/userinfo.c
@@ -78,7 +78,7 @@ struct userinfostruct *userinfo_create(const char *userid,const char *ip)
 	int skip;
 	int flen;
 	int count, clen;
-	char cstr[9];
+	char cstr[10];
 	char filename[MAX_USER_FNAME_LEN];
 
 	if (!UserStrings) {