Move CONFIG_NSH_TMPDIR to CONFIG_LIBC_TMPDIR

This commit is contained in:
Gregory Nutt
2014-11-05 07:49:20 -06:00
parent 3a19f48d93
commit 131b8c5946
3 changed files with 3 additions and 14 deletions

View File

@@ -874,7 +874,7 @@ static FAR char *nsh_cmdparm(FAR struct nsh_vtbl_s *vtbl, FAR char *cmdline,
/* Create a unique file name using the task ID */
tmpfile = NULL;
ret = asprintf(&tmpfile, "%s/TMP%d.dat", CONFIG_NSH_TMPDIR, getpid());
ret = asprintf(&tmpfile, "%s/TMP%d.dat", CONFIG_LIBC_TMPDIR, getpid());
if (ret < 0 || !tmpfile)
{
nsh_output(vtbl, g_fmtcmdoutofmemory, "``");