File: fix_misc

package info (click to toggle)
ifmail 2.14tx8.10-32
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,056 kB
  • sloc: ansic: 30,328; perl: 4,955; yacc: 839; makefile: 716; sh: 424; cpp: 235; lex: 206; awk: 24
file content (44 lines) | stat: -rw-r--r-- 1,004 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
36
37
38
39
40
41
42
43
44
--- a/ifgate/ifunpack.c
+++ b/ifgate/ifunpack.c
@@ -271,7 +271,7 @@ int lockunpack(void)
 
 void ulockunpack(void)
 {
-	if (lockfile) (void)unlink(lockfile);
+	if (*lockfile) (void)unlink(lockfile);
 }
 
 #if defined(HAS_STATFS) | defined(HAS_STATVFS)
--- a/ifcico/call.c
+++ b/ifcico/call.c
@@ -77,7 +77,7 @@ int parsehidden(char *str,struct s_hidde
 int override(faddr *addr,node *nlent,fa_list *FromWhere)
 {
  int i;
- static char TXY[3];
+ static char TXY[4];
  struct s_hidden hidden;
 
  hidden.phone=NULL;
--- a/ifcico/xmrecv.c
+++ b/ifcico/xmrecv.c
@@ -367,7 +367,7 @@ SM_STATE(checktelink)
 	debug(11,"checktelink got \"%s\"",printable(xmblk.data,45));
 	if (tmpfname[0] == '\0')
 	{
-		strncpy(tmpfname,xmblk.data+8,16);
+		strncpy(tmpfname,xmblk.data+8,sizeof(tmpfname)-1);
 	}
 	else
 	{
--- a/iflib/pktname.c
+++ b/iflib/pktname.c
@@ -38,7 +38,7 @@ static char *prepbuf(addr)
 faddr *addr;
 {
 	char *p,*domain=NULL;
-	char zpref[8];
+	char zpref[9];
 	fa_list *tmpl;
 
 	if (fakeoutbound)