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";
|
||||
}
|
||||
zero = malloc((nlall+5)*sizeof(int*));
|
||||
tfname = mktemp("/tmp/eXXXXX");
|
||||
tfname = mktemp(strdup("/tmp/eXXXXX"));
|
||||
init();
|
||||
setjmp(savej);
|
||||
commands();
|
||||
|
|
Loading…
Reference in a new issue