summaryrefslogtreecommitdiff
blob: faf72eb67e7aa106d00e26107ba02585b4a1087b (plain)
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
diff -bur mpack-1.6-orig/unixos.c mpack-1.6/unixos.c
--- mpack-1.6-orig/unixos.c	2007-03-11 02:02:02.000000000 +0100
+++ mpack-1.6/unixos.c	2007-03-11 02:04:48.000000000 +0100
@@ -39,7 +39,7 @@
 #endif
 
 extern int errno;
-extern char *malloc();
+extern void *malloc();
 extern char *getenv();
 
 int overwrite_files = 0;
@@ -90,7 +90,7 @@
 	strcpy(buf, getenv("TMPDIR"));
     }
     else {
-	strcpy(buf, "/usr/tmp");
+	strcpy(buf, "/var/tmp");
     }
     strcat(buf, "/m-prts-");
     p = getenv("USER");
diff -bur mpack-1.6-orig/unixpk.c mpack-1.6/unixpk.c
--- mpack-1.6-orig/unixpk.c	2007-03-11 02:02:02.000000000 +0100
+++ mpack-1.6/unixpk.c	2007-03-11 02:14:02.000000000 +0100
@@ -167,7 +167,7 @@
 	    strcpy(fnamebuf, "/usr/tmp");
 	}
 	strcat(fnamebuf, "/mpackXXXXXX");
-	mktemp(fnamebuf);
+	mkstemp(fnamebuf);
 	outfname = strsave(fnamebuf);
     }
 
diff -bur mpack-1.6-orig/unixpk.man mpack-1.6/unixpk.man
--- mpack-1.6-orig/unixpk.man	2007-03-11 02:02:02.000000000 +0100
+++ mpack-1.6/unixpk.man	2007-03-11 02:14:13.000000000 +0100
@@ -136,7 +136,7 @@
 .SH ENVIRONMENT
 .TP
 .B TMPDIR
-Directory to store temporary files.  Default is /usr/tmp.
+Directory to store temporary files.  Default is /var/tmp.
 .TP
 .B SPLITSIZE
 Default value of the -m switch.
diff -bur mpack-1.6-orig/unixunpk.man mpack-1.6/unixunpk.man
--- mpack-1.6-orig/unixunpk.man	2007-03-11 02:02:02.000000000 +0100
+++ mpack-1.6/unixunpk.man	2007-03-11 02:03:14.000000000 +0100
@@ -107,7 +107,7 @@
 .SH ENVIRONMENT
 .TP
 .B TMPDIR
-Directory to store temporary files.  Default is /usr/tmp.
+Directory to store temporary files.  Default is /var/tmp.
 .SH FILES
 .TP
 .B $TMPDIR/m-prts-$USER/
diff -bur mpack-1.6-orig/xmalloc.c mpack-1.6/xmalloc.c
--- mpack-1.6-orig/xmalloc.c	2007-03-11 02:02:02.000000000 +0100
+++ mpack-1.6/xmalloc.c	2007-03-11 02:04:29.000000000 +0100
@@ -24,7 +24,7 @@
  */
 #include <stdio.h>
 #include <string.h>
-extern char *malloc(), *realloc();
+extern void *malloc(), *realloc();
 
 char *xmalloc (int size)
 {