BAS: Now uses tmpnam() instead of mytmpnam()

This commit is contained in:
Gregory Nutt 2014-11-05 10:51:37 -06:00
parent ad6ea1a9da
commit a2a4f3b2cd

View File

@ -62,6 +62,8 @@
#include <nuttx/config.h>
#include <stdlib.h>
#include "statement.h"
/****************************************************************************
@ -1159,7 +1161,7 @@ struct Value *stmt_EDIT(struct Value *value)
return Value_new_ERROR(value, NOTINPROGRAMMODE);
}
if ((name = mytmpnam()) == (char *)0)
if ((name = tmpnam(NULL)) == (char *)0)
{
pc = statementpc;
return Value_new_ERROR(value, IOERROR,