public
/
ack.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dac25d9
)
Fixed call to mktemp() so that it does not try to change a constant string
author
ceriel
<none@none>
Wed, 26 Jun 1991 17:32:44 +0000
(17:32 +0000)
committer
ceriel
<none@none>
Wed, 26 Jun 1991 17:32:44 +0000
(17:32 +0000)
util/amisc/astrip.c
patch
|
blob
|
history
diff --git
a/util/amisc/astrip.c
b/util/amisc/astrip.c
index
686e116
..
0a1f6d9
100644
(file)
--- a/
util/amisc/astrip.c
+++ b/
util/amisc/astrip.c
@@
-14,6
+14,7
@@
*/
+char tmpnam[] = "/tmp/sXXXXXX";
char *tname;
char *mktemp();
FILE *fopen();
@@
-29,7
+30,7
@@
char **argv;
signal(SIGHUP, SIG_IGN);
signal(SIGINT, SIG_IGN);
signal(SIGQUIT, SIG_IGN);
- tname = mktemp(
"/tmp/sXXXXX"
);
+ tname = mktemp(
tmpnam
);
while(--argc) {
if ((status = strip(argv[argc])) > 1)
break;