ed: dont pass string constants to mktemp()
This commit is contained in:
parent
f65d27b0fc
commit
4f95d75098
1 changed files with 1 additions and 1 deletions
|
@ -157,7 +157,7 @@ main(int argc, char *argv[])
|
||||||
globp = L"r";
|
globp = L"r";
|
||||||
}
|
}
|
||||||
zero = malloc((nlall+5)*sizeof(int*));
|
zero = malloc((nlall+5)*sizeof(int*));
|
||||||
tfname = mktemp("/tmp/eXXXXX");
|
tfname = mktemp(strdup("/tmp/eXXXXX"));
|
||||||
init();
|
init();
|
||||||
setjmp(savej);
|
setjmp(savej);
|
||||||
commands();
|
commands();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue