summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-11-05 10:51:37 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-11-05 10:51:37 -0600
commit1e2c21de678de30bde7d61405a4bd537ef7269c3 (patch)
treed1a9d5f5d09dca6d4cffd7f0b3e82b0bd25551f8
parent640683d99db1fb3879f2a0fbe69724e395d3a652 (diff)
downloadnuttx-1e2c21de678de30bde7d61405a4bd537ef7269c3.tar.gz
nuttx-1e2c21de678de30bde7d61405a4bd537ef7269c3.tar.bz2
nuttx-1e2c21de678de30bde7d61405a4bd537ef7269c3.zip
BAS: Now uses tmpnam() instead of mytmpnam()
-rw-r--r--apps/interpreters/bas/statement.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/interpreters/bas/statement.c b/apps/interpreters/bas/statement.c
index 4b45c259a..9fe45126f 100644
--- a/apps/interpreters/bas/statement.c
+++ b/apps/interpreters/bas/statement.c
@@ -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,