Skip to content

Commit 9609a52

Browse files
author
Daniel Kroening
committed
simplify use of get_temporary_directory
1 parent 5907f68 commit 9609a52

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/goto-cc/compile.cpp

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -226,20 +226,14 @@ bool compilet::add_files_from_archive(
226226
const std::string &file_name,
227227
bool thin_archive)
228228
{
229-
#ifdef _WIN32
230-
char td[MAX_PATH + 1];
231-
#else
232-
char td[] = "goto-cc.XXXXXX";
233-
#endif
234-
235229
std::stringstream cmd;
236230
FILE *stream;
237231

238232
std::string tstr = working_directory;
239233

240234
if(!thin_archive)
241235
{
242-
tstr = get_temporary_directory(td);
236+
tstr = get_temporary_directory("goto-cc.XXXXXX");
243237

244238
if(tstr=="")
245239
{

0 commit comments

Comments
 (0)