ed: dont pass string constants to mktemp()

This commit is contained in:
cinap_lenrek 2014-06-22 01:48:02 +02:00
parent f65d27b0fc
commit 4f95d75098

View file

@ -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();