Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-kde
Path: blob/main/irc/irssistats/files/patch-irssistats.c
16466 views
1
--- irssistats.c.orig 2007-11-10 18:40:55 UTC
2
+++ irssistats.c
3
@@ -1561,19 +1561,19 @@ void gen_xhtml(char *xhtmlfile)
4
fclose(fic);
5
}
6
7
-void parse_config(char *configfile)
8
+void expand(char *path)
9
{
10
- void expand(char *path)
11
+ char temp[MAXLINELENGTH];
12
+ if (*path=='~')
13
{
14
- char temp[MAXLINELENGTH];
15
- if (*path=='~')
16
- {
17
- snprintf(temp,MAXLINELENGTH-1,"%s%s",getenv("HOME"),path+1);
18
- temp[MAXLINELENGTH-1]='\0';
19
- strcpy(path,temp);
20
- }
21
+ snprintf(temp,MAXLINELENGTH-1,"%s%s",getenv("HOME"),path+1);
22
+ temp[MAXLINELENGTH-1]='\0';
23
+ strcpy(path,temp);
24
}
25
-
26
+}
27
+
28
+void parse_config(char *configfile)
29
+{
30
FILE *fic;
31
char line[MAXLINELENGTH];
32
char keyword[MAXLINELENGTH];
33
34