mirror of
https://github.com/apache/nuttx.git
synced 2026-08-12 07:55:32 +00:00
libc: tmpfile shouldn't hardcode the folder to /tmp
use P_tmpdir macro instead Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
29f9d97420
commit
4029706583
1 changed files with 1 additions and 1 deletions
|
|
@ -32,7 +32,7 @@
|
|||
|
||||
FAR FILE *tmpfile(void)
|
||||
{
|
||||
char path[L_tmpnam] = "/tmp/XXXXXX.tmp";
|
||||
char path[L_tmpnam] = P_tmpdir "/XXXXXX.tmp";
|
||||
FAR FILE *fp = NULL;
|
||||
int fd;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue